Arma 3 Scripting

scriptName

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · 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
}