BIS fnc getUnitByUID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Returns object belonging to given player UID |= Description
 
Description:
Returns object belonging to given UID
 
Parameter(s):
0: STRING - The UID of object
 
Returns:
OBJECT
*/
// Parameters
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_getUnitByUid]]; --> |= Syntax
| playerUID call [[BIS_fnc_getUnitByUid]] |= Syntax


|p1= |= Parameter 1
|p1= playerUID: [[String]] - see [[getPlayerUID]] |= Parameter 1


| |= Return value
| [[Object]] - the unit controlled by ''playerUID'' player |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_unitPlayedByUID550055 = "550055" [[call]] [[BIS_fnc_getUnitByUid]];</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[getPlayerUID]] |= See also
 
}}
}}



Revision as of 20:42, 7 May 2018

Hover & click on the images for description

Description

Description:
Returns object belonging to given player UID
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
playerUID call BIS_fnc_getUnitByUid
Parameters:
playerUID: String - see getPlayerUID
Return Value:
Object - the unit controlled by playerUID player

Examples

Example 1:
_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