scudState: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SCUDSTATE]]
[[Category:Scripting Commands|SCUDSTATE]]
[[Category:Scripting Commands OFP 1.97|SCUDSTATE]]
[[Category:Scripting Commands OFP 1.96|SCUDSTATE]]
[[Category:Scripting Commands OFP 1.46|SCUDSTATE]]
[[Category:Scripting Commands OFP 1.46|SCUDSTATE]]
[[Category:Scripting Commands ArmA|SCUDSTATE]]
[[Category:Scripting Commands ArmA|SCUDSTATE]]

Revision as of 20:25, 1 June 2006


scudState scudname


Operand types:

scudname: Object

Type of returned value:

Number

Compatibility:

Added in version 1.28

Description:

Current state of given Scud launcher.

Following states are recognized:

  • 0 - No activity
  • 1 - Launch preparation
  • 2 - Launch prepared
  • 3 - Ignition
  • 4 - Launched

Note: Non-integral values are used to indicate transition between states.


Example:

? scudState scudOne >= 3 : hint "RUN!!!!"


Comments:

Note that this command does not make the scud do anything.

It simply checks to see what state the scud is in.

To make the scud be upright or launch you need to use an action.

e.g. scud1 action ["scud launch"]