BIS fnc getUnitByUID: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Misc(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = Multiplayer |GROUP1= | |gr1 = Multiplayer |GROUP1= | ||
| Returns player-controlled unit (if any) according to the provided [[getPlayerUID|player UID]]. |DESCRIPTION= | | Returns player-controlled unit (if any) according to the provided [[getPlayerUID|player UID]]. |DESCRIPTION= | ||
| playerUID call [[BIS_fnc_getUnitByUID]] |SYNTAX= | | playerUID call [[BIS_fnc_getUnitByUID]] |SYNTAX= | ||
Line 17: | Line 14: | ||
| [[Object]] - the unit controlled by ''playerUID'' player |RETURNVALUE= | | [[Object]] - the unit controlled by ''playerUID'' player |RETURNVALUE= | ||
|x1= <code>[[private]] _unitPlayedByUID550055 = "550055" [[call]] [[BIS_fnc_getUnitByUID]];</code> |EXAMPLE1= | |x1= <code>[[private]] _unitPlayedByUID550055 = "550055" [[call]] [[BIS_fnc_getUnitByUID]];</code> |EXAMPLE1= | ||
| [[getPlayerUID]] |SEEALSO= | | [[getPlayerUID]] |SEEALSO= |
Revision as of 23:08, 16 January 2021
Description
- Description:
- Returns player-controlled unit (if any) according to the provided player UID.
- Execution:
- call
- Groups:
- Multiplayer
Syntax
- Syntax:
- playerUID call BIS_fnc_getUnitByUID
- Parameters:
- playerUID: String - see getPlayerUID
- Return Value:
- Object - the unit controlled by playerUID player
Examples
- Example 1:
private _unitPlayedByUID550055 = "550055" call BIS_fnc_getUnitByUID;
Additional Information
- See also:
- getPlayerUID
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