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

Method enable_vision

ogsr_engine/xrGame/script_game_object2.cpp:266–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266void CScriptGameObject::enable_vision(bool value)
267{
268 CCustomMonster* monster = smart_cast<CCustomMonster*>(&object());
269 if (!monster)
270 {
271 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CVisualMemoryManager : cannot access class member enable_vision!");
272 return;
273 }
274 monster->memory().visual().enable(value);
275}
276
277bool CScriptGameObject::vision_enabled() const
278{

Callers

nothing calls this directly

Calls 5

script_logMethod · 0.80
objectFunction · 0.50
enableMethod · 0.45
visualMethod · 0.45
memoryMethod · 0.45

Tested by

no test coverage detected