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

Method VarSet

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

Source from the content-addressed store, hash-verified

542}
543
544void Script::VarSet(const char* name, GameValuePar value, bool readOnly)
545{
546 GameState* gstate = GWorld->GetGameState();
547 gstate->BeginContext(&_vars);
548 gstate->VarSet(name, value, readOnly);
549 gstate->EndContext();
550}
551
552void Script::GoTo(RString label)
553{

Callers 15

ReloadViewerCoreMethod · 0.45
InitEditorMethod · 0.45
InitVehiclesMethod · 0.45
SimulateMethod · 0.45
CreateObjectMethod · 0.45
ScanMethod · 0.45
DoActivateMethod · 0.45
OnActivateMethod · 0.45
SetSelectionMethod · 0.45
VarSetFloatInternalMethod · 0.45
IsSyncActiveFunction · 0.45
ApplyEffectsFunction · 0.45

Calls 3

BeginContextMethod · 0.80
EndContextMethod · 0.80
GetGameStateMethod · 0.45

Tested by

no test coverage detected