currentCommand: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Unit Control |GROUP1= | |gr1= Unit Control |GROUP1= | ||
| Return the current command type (empty string when no command) for the commander of given vehicle (or for a given soldier). Returned value can be one of: | | Return the current command type (empty string when no command) for the commander of given vehicle (or for a given soldier). Returned value can be one of: | ||
Line 29: | Line 27: | ||
* "Suppress" | * "Suppress" | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| [[currentCommand]] vehicleName |SYNTAX= | | [[currentCommand]] vehicleName |SYNTAX= | ||
Line 38: | Line 35: | ||
|x1= <code>_command = [[currentCommand]] [[player]];</code> |EXAMPLE1= | |x1= <code>_command = [[currentCommand]] [[player]];</code> |EXAMPLE1= | ||
| [[commandFire]], [[commandMove]], [[commandSuppressiveFire]], [[join]] |SEEALSO= | | [[commandFire]], [[commandMove]], [[commandSuppressiveFire]], [[join]] |SEEALSO= |
Revision as of 00:41, 17 January 2021
Description
- Description:
- Return the current command type (empty string when no command) for the commander of given vehicle (or for a given soldier). Returned value can be one of:
- "WAIT"
- "ATTACK"
- "HIDE"
- "MOVE"
- "HEAL"
- "REPAIR"
- "REFUEL"
- "REARM"
- "SUPPORT"
- "JOIN"
- "GET IN"
- "FIRE"
- "GET OUT"
- "STOP"
- "EXPECT"
- "ACTION"
- "ATTACKFIRE"
- "Suppress"
- Groups:
- Unit Control
Syntax
- Syntax:
- currentCommand vehicleName
- Parameters:
- vehicleName: Object
- Return Value:
- String
Examples
- Example 1:
_command = currentCommand player;
Additional Information
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