currentCommand: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
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

Hover & click on the images for description

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

See also:
commandFirecommandMovecommandSuppressiveFirejoin

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

Bottom Section