Arma 3 Scripting

Command in Program Flow

scriptName

Also available as Markdown and JSON, or read the original wiki page.

Description

Assign a user friendly name to the VM script this command is executed from.

Important

Once a name is assigned, it cannot be changed.

Syntax

scriptName name

Parameters:

Returns: Nothing

Examples

Example 1

scriptName "leetScript.sqf";

Example 2

scriptName format ["%1ARTY\data\scripts\ARTY_sadarmDeploy.sqf (_this: %1)", _this];

See also

spawn · execVM · scriptDone

Community notes

PhilippRauch

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
}