name: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 57: | Line 57: | ||
* "profile" - for [[profileNamespace]] | * "profile" - for [[profileNamespace]] | ||
* "ui" - for [[uiNamespace]] | * "ui" - for [[uiNamespace]] | ||
* "parsing" - for [[parsingNamespace]] | |||
* "local" - for [[localNamespace]] | * "local" - for [[localNamespace]] | ||
* "missionprofile" - for [[missionProfileNamespace]] | * "missionprofile" - for [[missionProfileNamespace]] | ||
* "server" - for [[serverNamespace]] | * "server" - for [[serverNamespace]] | ||
* "" - for some unnamed server config | * "" - for some unnamed namespaces like temporary or server config for example. | ||
* "null" - null namespace (this should never happen) | * "null" - null namespace (this should never happen) | ||
|x1= <sqf>_name = name player;</sqf> | |x1= <sqf>_name = name player;</sqf> |
Latest revision as of 23:20, 3 July 2024
Description
- Description:
- 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.
- Multiplayer:
- name returns profileName, eventually suffixed by the server in the event of identical names, e.g username/username (2).
- Problems:
- Groups:
- Unit IdentityLocations
Syntax 1
Syntax 2
- Syntax:
- name location
- Parameters:
- location: Location
- Return Value:
- String - the location's name. To get its textual value, use text (see Example 3)
Syntax 3
- Syntax:
- name namespace
- Parameters:
- namespace: Namespace
- Return Value:
- String - namespace's name. Possible values:
- "mission" - for missionNamespace
- "profile" - for profileNamespace
- "ui" - for uiNamespace
- "parsing" - for parsingNamespace
- "local" - for localNamespace
- "missionprofile" - for missionProfileNamespace
- "server" - for serverNamespace
- "" - for some unnamed namespaces like temporary or server config for example.
- "null" - null namespace (this should never happen)
Examples
- Example 1:
- Example 2:
- Example 3:
- name nearestLocation [position player, "Hill"]; // "" text nearestLocation [position player, "Hill"]; // "Lesnoy Khrebet"
- Example 4:
Additional Information
- See also:
- profileName setName setIdentity nameSound setNameSound createLocation deleteLocation locationPosition nearestLocation nearestLocations nearestLocationWithDubbing
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on Jan 30, 2017 - 19:42 (UTC)
- Location variant appears to be only for the 3d editor.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Identity
- Command Group: Locations