Arma 3 Scripting

vehicleVarName

  • Global argument
  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · Markdown · JSON · original wiki page

Description

Returns the variable name that contains a primary editor reference to this object. This is the variable given in the Insert Unit dialog / name field in the editor. It can be changed using setVehicleVarName.

Note

Respawned unit will have the same vehicleVarName as the corpse left behind, however actual missionNamespace variable of the same name will only contain respawned unit.

Syntax

vehicleVarName object

Parameters:

Returns: String - variable name, if none was set, an empty string is returned

Examples

Example 1

hint vehicleVarName player;

See also

setVehicleVarName · BIS_fnc_objectVar

Community notes