---
name: "scriptName"
type: command
status: ok
groups: ["Program Flow"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/scriptName
revid: 369379
updated: 2024-09-03T18:43:13Z
---

# scriptName

*Command · Program Flow · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Assign a user friendly name to the [VM script](../topics/Script_Handle.md) this command is executed from.

> [!IMPORTANT]
> Once a name is assigned, it cannot be changed.

## Syntax

```sqf
scriptName name
```

**Parameters:**

- `name`: [String](../topics/String.md)

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
scriptName "leetScript.sqf";
```

### Example 2

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

## See also

[spawn](../commands/spawn.md) · [execVM](../commands/execVM.md) · [scriptDone](../commands/scriptDone.md)

## Community notes

**PhilippRauch** — 2009-06-13

[scriptName](../commands/scriptName.md) is good when you want to load the handle of some spawn or call with some name:

```sqf
example_scripthandle = 0 spawn {
    scriptName "Example";
    systemChat str example_scripthandle; // System: Example
}
```

<sub>Source: [BI Community Wiki — scriptName](https://community.bistudio.com/wiki/scriptName) (revision 369379).</sub>
