Kju
Location variant appears to be only for the 3d editor.
Results appear below as you type; use the arrow keys to move through them.
Command · also in Locations · Markdown · JSON · original wiki page
When argument is Object, the command returns the name given to a unit using the setIdentity instruction or selected randomly by the game engine if setIdentity has not been used on the unit. If used on vehicle, name of first crew member (in order commander, driver, gunner). If used on an object, "Error: No unit" is being returned.
name object
Parameters:
object: ObjectReturns: String
since arma1 1.08
name location
Parameters:
location: LocationReturns: String - the location's name. To get its textual value, use text (see Example 3)
since arma3 2.18
name namespace
Parameters:
namespace: NamespaceReturns: String - namespace's name. Possible values:
since arma3 2.22
name scriptHandle
Parameters:
scriptHandle: Script HandleReturns: String - The name given to the script via scriptName or the name passed to spawn when creating a "Empty Handle"
_name = name player;
_locationName = name myLocation;
name nearestLocation [position player, "Hill"]; // ""
text nearestLocation [position player, "Hill"]; // "Lesnoy Khrebet"
_currentNamespace = name currentNamespace;
name returns profileName, eventually suffixed by the server in the event of identical names, e.g username/username (2).
Important
If the provided unit is dead and has been removed from its group, its identity has then been purged to save memory and using name on it will result in a logged error.
profileName · setName · setIdentity · nameSound · setNameSound · createLocation · deleteLocation · locationPosition · nearestLocation · nearestLocations · nearestLocationWithDubbing
Location variant appears to be only for the 3d editor.
Will return Error: No vehicle for JIP players in init.sqf, if no sleep were performed.