MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / SwitchTorch

Method SwitchTorch

ogsr_engine/xrGame/script_game_object_inventory_owner.cpp:929–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

927}
928
929void CScriptGameObject::SwitchTorch(bool enable)
930{
931 CTorch* torch = smart_cast<CTorch*>(&object());
932 if (!torch)
933 {
934 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CInventoryOwner : cannot access class member activate_slot!");
935 return;
936 }
937 torch->Switch(enable);
938}
939
940void CScriptGameObject::enable_movement(bool enable)
941{

Callers

nothing calls this directly

Calls 3

script_logMethod · 0.80
objectFunction · 0.50
SwitchMethod · 0.45

Tested by

no test coverage detected