void CScriptGameObject::set_smart_cover_target_selector (luabind::functor<void> functor, luabind::object object) { CAI_Stalker *stalker = smart_cast<CAI_Stalker*>(&this->object()); if (!stalker) { ai().script_engine().script_log (ScriptStorage::eLuaMessageTypeError,"CAI_Stalker : cannot access class member set_smart_cover_target_selector!"); return; } CScriptCallbackEx<void> callback; callback.set (functor, object); stalker->movement().target_selector (callback); }
void iterate_sounds2 (LPCSTR prefix, u32 max_count, luabind::object object, luabind::functor<void> functor) { CScriptCallbackEx<void> temp; temp.set (functor,object); iterate_sounds (prefix,max_count,temp); }