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

Method set_item

ogsr_engine/xrGame/script_game_object2.cpp:88–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void CScriptGameObject::set_item(MonsterSpace::EObjectAction object_action)
89{
90 CObjectHandler* object_handler = smart_cast<CAI_Stalker*>(&object());
91 if (!object_handler)
92 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CObjectHandler : cannot access class member set_item!");
93 else
94 object_handler->set_goal(object_action);
95}
96
97void CScriptGameObject::set_item(MonsterSpace::EObjectAction object_action, CScriptGameObject* lua_game_object)
98{

Callers

nothing calls this directly

Calls 4

script_logMethod · 0.80
objectFunction · 0.50
set_goalMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected