Arma 3 Scripting

scudState

  • Arma 3 v0.50
  • First in Operation Flashpoint v1.30

Command · Markdown · JSON · original wiki page

Description

Return the current state of given Scud launcher.

Syntax

scudState scudName

Parameters:

Returns: Number - can be one of:

Examples

Example 1

waitUntil { sleep 1; scudState _scud > 2 };
guba say "MasterPlanCompletion";

See also

action · Arma 3: Actions

Community notes

Hardrock

This command checks the scud status (Non-integral values are used to indicate transition between states). To make the scud be upright, launch or cancel launch you need to use actions.

scud1 action ["scudLaunch", scud1];    // rise the missile
scud1 action ["scudStart", scud1];    // launch the missile
scud1 action ["scudCancel", scud1];    // down the missile

(Make sure either the scud launcher has a crew inside or you use the game logic to perform actions).