MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / VarGet

Method VarGet

engine/Poseidon/Game/Scripting/Scripts.cpp:535–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533}
534
535GameValue Script::VarGet(const char* name) const
536{
537 GameState* gstate = GWorld->GetGameState();
538 gstate->BeginContext(const_cast<GameVarSpace*>(&_vars));
539 GameValuePar retval = gstate->VarGet(name);
540 gstate->EndContext();
541 return retval;
542}
543
544void Script::VarSet(const char* name, GameValuePar value, bool readOnly)
545{

Callers 12

PublicVariableMethod · 0.45
ExecuteNamedRemoteExecFunction · 0.45
ExecuteNamedRemoteExecFunction · 0.45
OnPlayerCreateMethod · 0.45
OnPlayerDestroyMethod · 0.45
SetObjectiveStatusFunction · 0.45
TriVehicleLockStateFunction · 0.45
TriUnitAIDisabledFunction · 0.45
TriAssertSubgroupLeaderFunction · 0.45
SimulateBodyMethod · 0.45
SimulateMethod · 0.45
OnSimulateMethod · 0.45

Calls 3

BeginContextMethod · 0.80
EndContextMethod · 0.80
GetGameStateMethod · 0.45

Tested by 3

TriVehicleLockStateFunction · 0.36
TriUnitAIDisabledFunction · 0.36
TriAssertSubgroupLeaderFunction · 0.36