LPCSTR CScriptGameObject::aim_bone_id () const { CAI_Stalker *stalker = smart_cast<CAI_Stalker*>(&object()); if (!stalker) { ai().script_engine().script_log (ScriptStorage::eLuaMessageTypeError,"CAI_Stalker : cannot access class member aim_bone_id!"); return (false); } return (stalker->aim_bone_id().c_str()); }
void CScriptGameObject::aim_bone_id (LPCSTR bone_id) { CAI_Stalker *stalker = smart_cast<CAI_Stalker*>(&object()); if (!stalker) { ai().script_engine().script_log (ScriptStorage::eLuaMessageTypeError,"CAI_Stalker : cannot access class member aim_bone_id!"); return; } stalker->aim_bone_id (bone_id); }