switchableUnits: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dt class="note">([^<>]+) " to "<dt class="note">$1</dt> ")
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
Line 17: Line 17:
unless in singleplayer where playable units from all sides will be accessible via this command.<br>
unless in singleplayer where playable units from all sides will be accessible via this command.<br>
Dead and player-controlled units are automatically removed from the resulting array.<br><br>
Dead and player-controlled units are automatically removed from the resulting array.<br><br>
{{Informative | In Multiplayer, [[switchableUnits]] are only available when [[description.ext#respawn|respawn]] type is set to SIDE or GROUP, the mission contains units marked playable and [[player]] is able to switch to any of those units. }}<br>
{{Feature | Informative | In Multiplayer, [[switchableUnits]] are only available when [[description.ext#respawn|respawn]] type is set to SIDE or GROUP, the mission contains units marked playable and [[player]] is able to switch to any of those units. }}<br>
In order to get all ''playable'' units regardless of their [[side]], see the [[playableUnits]] command.
In order to get all ''playable'' units regardless of their [[side]], see the [[playableUnits]] command.



Revision as of 00:10, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
MultiplayerTeam SwitchObject Detection

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:
_availableUnits = switchableUnits;

Additional Information

See also:
See also needed

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
Posted on July 06, 2011 - 13:32
Messiah2
On dedicated server this command returns empty array.