units

From Bohemia Interactive Community

Jump to: navigation, search
Editors, please check Policy: Scripting Command Page Syntax.
Introduced in Operation Flashpoint version 1.00

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint
Version:
1.00

Description

Description:
Returns an array with all the units in the group or unit.
For a destroyed object an empty array is returned.

Syntax

Syntax:
Array = units groupOrunit
Parameters:
groupOrunit: Group or Object
Return Value:
Array

Examples

Example 1:
player in units group player

Additional Information

Multiplayer:
-
See also:
group, allGroups, allUnits, playableUnits, switchableUnits, vehicles

Notes

Notes

+ Add Note

Only post proven facts here. Use the talk page or the forums for discussions.

Notes

Posted on September 24, 2009
Kronzky
The returned array on MP clients is not updated when team members die (only when they are deleted). (Tested on VBS2)

Bottom Section

Personal tools