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

Method visibility_threshold

ogsr_engine/xrGame/script_game_object2.cpp:255–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255float CScriptGameObject::visibility_threshold() const
256{
257 CCustomMonster* monster = smart_cast<CCustomMonster*>(&object());
258 if (!monster)
259 {
260 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "CGameObject : cannot access class member visibility_threshold!");
261 NODEFAULT;
262 }
263 return (monster->memory().visual().visibility_threshold());
264}
265
266void CScriptGameObject::enable_vision(bool value)
267{

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected