DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ ExecuteEnforceScript()

void PluginBase::ExecuteEnforceScript ( int index,
SceneObject scene_object,
string script )
inlineprivate

См. определение в файле PluginSceneManager.c строка 898

899 {
900 if ( script != "" )
901 {
902 string cls = scene_object.GetObject().ClassName();
903 string wrapped_script = "void scMngMain() \n{\n PluginSceneManager se = GetPlugin(Type(\"PluginSceneManager\")); \n SceneObject this_obj = se.GetSceneObjectByIndex(" + index.ToString() + "); \n " + cls + " this_eai = this_obj.GetObject(); \n " + script + "\n}\n";
904
905 GetGame().ExecuteEnforceScript(wrapped_script, "scMngMain");
906 }
907 }
proto native bool ExecuteEnforceScript(string expression, string mainFnName)
Delevoper only: Executes Enforce Script expression, if there is an error, is printed into the script ...
EntityAI GetObject()
Определения SceneObject.c:59
proto native CGame GetGame()

Перекрестные ссылки CGame::ExecuteEnforceScript(), GetGame() и SceneObject::GetObject().

Используется в ExecuteInitScripts().