scriptName is good when you want to load the handle of some spawn or call with some name:
example_scripthandle = 0 spawn {
scriptName "Example";
systemChat str example_scripthandle; // System: Example
}
Also available as Markdown and JSON, or read the original wiki page.
Assign a user friendly name to the VM script this command is executed from.
Important
Once a name is assigned, it cannot be changed.
scriptName name
Parameters:
name: StringReturns: Nothing
scriptName "leetScript.sqf";
scriptName format ["%1ARTY\data\scripts\ARTY_sadarmDeploy.sqf (_this: %1)", _this];
spawn · execVM · scriptDone
scriptName is good when you want to load the handle of some spawn or call with some name:
example_scripthandle = 0 spawn {
scriptName "Example";
systemChat str example_scripthandle; // System: Example
}