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

Method vision_enabled

ogsr_engine/xrGame/script_game_object2.cpp:277–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277bool CScriptGameObject::vision_enabled() const
278{
279 CCustomMonster* monster = smart_cast<CCustomMonster*>(&object());
280 if (!monster)
281 {
282 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CVisualMemoryManager : cannot access class member vision_enabled!");
283 return (false);
284 }
285 return (monster->memory().visual().enabled());
286}
287
288void CScriptGameObject::set_sound_threshold(float value)
289{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected