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

Method memory_position

ogsr_engine/xrGame/script_game_object2.cpp:223–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223Fvector CScriptGameObject::memory_position(const CScriptGameObject& lua_game_object)
224{
225 CCustomMonster* monster = smart_cast<CCustomMonster*>(&object());
226 if (!monster)
227 {
228 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CScriptEntity : cannot access class member memory!");
229 return (Fvector().set(0.f, 0.f, 0.f));
230 }
231 else
232 return (monster->memory().memory_position(&lua_game_object.object()));
233}
234
235void CScriptGameObject::enable_memory_object(CScriptGameObject* game_object, bool enable)
236{

Callers

nothing calls this directly

Calls 5

script_logMethod · 0.80
objectFunction · 0.50
setMethod · 0.45
memoryMethod · 0.45
objectMethod · 0.45

Tested by

no test coverage detected