BIS fnc getName: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported: BIS Functions update 7/7) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|= Comments | {{Function|= Comments | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 8: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Returns name of a unit. Name of unit is stored in it's namespace so it can be retrieved later, mainly for when unit dies. Name is stored in the variable '''BIS_fnc_getName_name'''.|= Description | ||
____________________________________________________________________________________________ | |||
| [object] call [[BIS_fnc_getName]] |= Syntax | |||
____________________________________________________________________________________________ | |||
|p1= object: [[Object]] - Object whose name should be returned |= Parameter 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | [[String]] - Unit's name |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>[ [[player]] ] [[call]] [[BIS_fnc_getName]];</code> |= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[name]] |= See also | ||
}} | }} | ||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> | ||
<dl class="command_description"> | <dl class="command_description"> |
Revision as of 13:48, 30 May 2018
Description
- Description:
- Returns name of a unit. Name of unit is stored in it's namespace so it can be retrieved later, mainly for when unit dies. Name is stored in the variable BIS_fnc_getName_name.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [object] call BIS_fnc_getName
- Parameters:
- object: Object - Object whose name should be returned
- Return Value:
- String - Unit's name
Examples
- Example 1:
[ player ] call BIS_fnc_getName;
Additional Information
- See also:
- name
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