| 253 | } |
| 254 | |
| 255 | float 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 | |
| 266 | void CScriptGameObject::enable_vision(bool value) |
| 267 | { |
nothing calls this directly
no test coverage detected