| 221 | } |
| 222 | |
| 223 | Fvector 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 | |
| 235 | void CScriptGameObject::enable_memory_object(CScriptGameObject* game_object, bool enable) |
| 236 | { |
nothing calls this directly
no test coverage detected