switchableUnits: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Bottom Section</h3>" to "") |
||
Line 37: | Line 37: | ||
</dl> | </dl> | ||
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]] | ||
{{GameCategory|arma1|Scripting Commands}} | {{GameCategory|arma1|Scripting Commands}} |
Revision as of 14:10, 18 January 2021
Description
- Description:
- Returns a list of playable units available for switching to.
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,
unless in singleplayer where playable units from all sides will be accessible via this command.
Dead and player-controlled units are automatically removed from the resulting array.
In order to get all playable units regardless of their side, see the playableUnits command. - Groups:
- MultiplayerTeam SwitchObject Detection
Syntax
- Syntax:
- switchableUnits
- Return Value:
- Array
Examples
- Example 1:
- _availableUnits = switchableUnits;
Additional Information
- See also:
- allPlayersunitsallCuratorsallGroupsallDeadplayableUnitsvehiclesallUnitsUAVallDeadMenteamSwitchTeam_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
- Posted on July 06, 2011 - 13:32
- Messiah2
- On dedicated server this command returns empty array.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Multiplayer
- Command Group: Team Switch
- Command Group: Object Detection
- Scripting Commands: Local Effect
- Arma 2: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands