switchableUnits: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(format)
(description)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return a list of units accessible through [[Team Switch]]. |= Description
| Returns a list of units accessible through [[Team Switch]]. Command is relative to the client on which it is executed and will only show playable units for the same [[side]] as [[player]]'s [[group]] + [[player]] himself. The [[playableUnits]] command on the other hand will show all playable units regardless of the [[side]]. Exception is SP, where playable units from all sides will be accessible via [[switchableUnits]]. <br><br>Dead units are automatically removed from the [[switchableUnits]] array. Playable units that are already occupied by other human players will also not show in [[switchableUnits]] array. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[Array]] <nowiki>=</nowiki> '''switchableUnits''' |= Syntax
| '''switchableUnits''' |= Syntax


| [[Array]]|= Return value
| [[Array]]|= Return value

Revision as of 15:54, 25 September 2016

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Returns a list of units accessible through Team Switch. Command is relative to the client on which it is executed and will only show playable units for the same side as player's group + player himself. The playableUnits command on the other hand will show all playable units regardless of the side. Exception is SP, where playable units from all sides will be accessible via switchableUnits.

Dead units are automatically removed from the switchableUnits array. Playable units that are already occupied by other human players will also not show in switchableUnits array.
Groups:
Uncategorised

Syntax

Syntax:
switchableUnits
Return Value:
Array

Examples

Examples:
Example needed

Additional Information

See also:
allPlayersunitsallCuratorsallGroupsallDeadplayableUnitsvehiclesallUnitsUAVallDeadMenTeam_Switch

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

Posted on July 06, 2011 - 13:32
Messiah2
On dedicated server this command returns empty array.

Bottom Section