Arma 3 Scripting

Function in Object Manipulation

BIS_fnc_getName

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

Description

Returns name of a unit. Name of unit is stored in it is namespace so it can be retrieved later, mainly for when unit dies. Name is stored in the variable BIS_fnc_getName_name.

If the unit is alive, this function does name and returns the result, and saves the result to the variable on the unit. If the unit is dead, the function tries to retrieve the saved name from the variable on the unit, and returns "" if none is saved, unless forcedWhenDead is set to true.

Syntax

[object] call BIS_fnc_getName

Parameters:

Returns: String - unit's name

Examples

Example 1

[player] call BIS_fnc_getName;

See also

name