BIS fnc getUnitByUID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Misc(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
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 00:08, 17 January 2021

Hover & click on the images for description

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

Notes

Bottom Section