Difference between revisions of "DCS editor actions"

From DCS World Wiki - Hoggitworld.com
(Created page with " == General == {{Template:DCSactions |name= Do Script |vNum= 1.2.0 |desc= Performs the lua script that was entered into the text box. |var1= lua script |var2= |var3= }} {{...")
 
(No difference)

Latest revision as of 09:03, 13 April 2018


General

Action: Do Script Added with: 1.2.0
Description: Performs the lua script that was entered into the text box.
Values: lua script
Action: Do Script File Added with: 1.2.0
Description: Runs the entire .lua file that you select. File gets embedded into the mission file, and any updates to it will require you to reload the file via this trigger.
Values: .lua file
Action: Load Mission Added with: 1.2.0
Description: Ends the current mission and loads the specified mission file. File gets embedded into the mission file, and any updates to it will require you to reload the file via this trigger.
Values: .miz file
Action: End Mission Added with: 1.2.0
Description: Ends the current mission with a victory for one side and displays a text message that the designer designates.
Values: Winner Side

Text Message

Action: Explosion Added with: 1.2.0
Description: Creates an explosion of a specified power on a trigger zone at a give altitude.
Values: Trigger Zone

Altitude. In Meters Above Sea Level

Power (0-10000)

Action: Illuminating Bomb Added with: 1.2.0
Description: Drops a illuminating candle bomb over a trigger zone. Candle burns for 5 minutes, best deployment altitude is 500- 2500 m AGL
Values: Trigger Zone

Altitude. In Meters Above Sea Level

Action: Signal Flare Added with: 1.2.0
Description: Creates a signal flare on a trigger zone at a given altitude
Values: Trigger Zone

Altitude. In Meters Above Sea Level

Color

bearing (0-360)

Action: Smoke Marker Added with: 1.2.0
Description: Creates a smoke marker on a trigger zone at the specified altitude
Values: Trigger Zone

Altitude. In Meters Above Sea Level

Color

Action: Play Arguement Added with: 1.2.0
Description: Plays a specific animation argument on a static object.
Values: Static Object Name

ArguementId (number)

Start (-1 to 1)

Stop (-1 to 1)

Speed m/s

Group

Action: Group Activate Added with: 1.2.0
Description: Activates a group from a dormant state. These groups must have "Late activation" checked or have start-time different than mission start time.
Values: Group Name
Action: Group Deactivate Added with: 1.2.0
Description: Deactivates a group. This removes it from the mission never to be seen again.
Values: Group Name
Action: Group AI On Added with: 1.2.0
Description: Enables a groups AI. AI always starts 'on'.
Values: Group Name
Action: Group AI Off Added with: 1.2.0
Description: Disables a groups AI. Group will stop and will be unable to move, shoot, or think.
Values: Group Name
Action: Group Activate Added with: 1.2.0
Description: Activates a group from a dormant state. These groups must have "Late activation" checked or have start-time different than mission start time.
Values: Group Name
Action: Group Stop Added with: 1.2.0
Description: Stops a group along its current route.
Values: Group Name
Action: Group Resume Added with: 1.2.0
Description: Resumes the groups current route.
Values: Group Name
Action: Group Stop and Deploy to Template Added with: 1.2.0
Description: Group stops and deploys to a template formation. Note AI cannot travel in the formation once the group is resumed.
Values: Group Name

Template Formation

Action: AI Task Push Added with: 1.2.0
Description: Pushes a task that was setup in a groups Triggered Actions tab. Task gets pushed to the front of the task queue.
Values: Task
Action: AI Task Set Added with: 1.2.0
Description: Sets a task that was setup in a groups Triggered Actions tab. Sets this as the one and only task for the AI. Don't use this unless you want the AI to completely stop what they are doing and never ever ever do it again... unless you like using mission scripting :)
Values: Task

Unit

Action: Unit AI On Added with: 1.2.0
Description: Enables a units AI.
Values: UnitName
Action: Unit AI Off Added with: 1.2.0
Description: Disables a units AI. Unit will be unable to move, shoot, or think.
Values: UnitName
Action: Unit Emission On Added with: 1.2.0
Description: Enables a units radar sensors.
Values: UnitName
Action: Unit Emission Off Added with: 1.2.0
Description: Disables a units radar sensors.
Values: UnitName
Action: Explode Unit Added with: 1.2.0
Description: Creates an explosion centered on the unit of a specified volume. The bigger the volume, the bigger the boom.
Values: UnitName

Volume (0 - 10000)

Action: Signal Flare on Unit Added with: 1.2.0
Description: Creates a signal flare of a specified color in a certain bearing from the unit.
Values: UnitName

Color

Bearing

Action: Smoke Marker on Unit Added with: 1.2.0
Description: Creates a smoke marker of a specific color directly on the unit. Useful for deploying smoke so friendlies don't shoot at it. Or shoot at its not like nothing ever happens if you do.
Values: UnitName

Smoke Color

Player

Action: Prevent Control Synchronization Added with: 1.2.0
Description: Prevents the synchronization of a players cockpit switch states with the settings on the players actual input controllers. Intended for training missions.
Values: Value (On or Off)
Action: Set Failure Added with: 1.2.0
Description: Sets a specific failure to occur on the players aircraft with a certain chance within a specific time value.
Values: Failure. (Dependent on Player aircraft)

Percentage (0 to 100)

Within (time in minutes)

Action: Set Internal Cargo Added with: 1.2.0
Description: Sets a weight to the players aircraft. Only works with transport helicopters capable of lifting stuff.
Values: Mass in kg (0 to 5000)
Action: Start Wait User Response Added with: 1.2.0
Description: Waits for the player to either hit their spacebar or backspace keys. Sets a flag to true depending on the response. Useful for training missions.
Values: Flag (number) SpaceBar

Back Flag (number) BackSpace

Action: Stop Wait User Response Added with: 1.2.0
Description: Stops waiting for a user response. Once triggered user can spam spacebar and nothing will happen.
Values:

Flag

Action: Flag On Added with: 1.2.0
Description: Sets the flag value to true.
Values: Flag (number)
Action: Flag Off Added with: 1.2.0
Description: Sets the flag value to false.
Values: Flag (number)
Action: Flag Increase Added with: 1.2.0
Description: Increases the current flag value by the specified value.
Values: Flag (number)

Value (number)

Action: Flag Decrease Added with: 1.2.0
Description: Decreases the current flag value by the specified value.
Values: Flag (number)

Value (number)

Action: Flag Set Random Value Added with: 1.2.0
Description: Randomly sets the flag value within the specified range.
Values: Flag (number)

Minimum Range Value (0 - 100)

Maximum Range Value (0 - 100)

Action: Set Flag Value Added with: 1.2.0
Description: Sets the flag to a specified value.
Values: Flag (number)

Value (number)

Messages and Sound

Action: Message to All Added with: 1.2.0
Description: Displays a text message that all players can see of the specified time.
Values: Message text

Time in seconds

Action: Message to Coalition Added with: 1.2.0
Description: Displays a text message to either the red of blue team for the specified time.
Values: Message text

Time in seconds

Coalition side

Action: Message to Country Added with: 1.2.0
Description: Displays a text message that only players belonging to a specific country can see
Values: Message text

Time in seconds

country name

Action: Message to Group Added with: 1.2.0
Description: Displays a text message that only a specific group can see.
Values: Message text

Time in seconds

Groupname

Action: Sound to All Added with: 1.2.0
Description: Plays a sound file that all players can hear.
Values: Sound File (.ogg or .wav). File gets embedded into the mission file, and any updates to it will require you to reload the file via this trigger.
Action: Sound to Coalition Added with: 1.2.0
Description: Plays a sound file that only players on as specific coalition can hear
Values: Sound File (.ogg or .wav). File gets embedded into the mission file, and any updates to it will require you to reload the file via this trigger.

Coalition side

Action: Sound to Country Added with: 1.2.0
Description: Plays a sound file that only players on a certain country can hear
Values: Sound File (.ogg or .wav). File gets embedded into the mission file, and any updates to it will require you to reload the file via this trigger.

countryName

Action: Sound to Group Added with: 1.2.0
Description: Plays a sound file that only players in a specific group can hear.
Values: Sound File (.ogg or .wav). File gets embedded into the mission file, and any updates to it will require you to reload the file via this trigger.
Action: Stop Last Sound Added with: 1.2.0
Description: Stops the most recently triggered sound file from playing.
Values:
Action: Radio Transmission Added with: 1.2.0
Description: Creates a radio transmission on a trigger zone that can be tuned and listened to by players with radios.
Values: Trigger Zone

Sound File (.ogg, .wav) File gets embedded into the mission file, and any updates to it will require you to reload the file via this trigger.

Modulation: AM or FM

Frequency (khz)

Loop: True or False. If sound file will loop itself.

Power: Number in Watts

name. Name of the radio transmission.

Action: Stop Radio Transmission Added with: 1.2.0
Description: Stops the radio transmission of a given name.
Values: Transmission name.

Radio Commands

Action: Radio Item Add Added with: 1.2.0
Description: Adds an option to the F10 Radio menu for all that when selected sets a flag to a specific value.
Values: Name (Display text of option)

Flag (number)

Value: (number 0 - 10000)

Action: Radio Item Remove Added with: 1.2.0
Description: Removes the radio item with the matching name from the F10 radio menu.
Values: Name (Display text of option)
Action: Radio Item Add For Coalition Added with: 1.2.0
Description: Adds an option to the F10 Radio menu for a coalition that when selected sets a flag to a specific value.
Values: Name (Display text of option)

Flag (number)

Value: (number 0 - 10000)

CoalitionName

Action: Radio Item Remove For Coalition Added with: 1.2.0
Description: Removes the radio item with the matching name from the F10 radio menu.
Values: Name (Display text of option)
Action: Radio Item Add For Group Added with: 1.2.0
Description: Adds an option to the F10 Radio menu for a group that when selected sets a flag to a specific value.
Values: Name (Display text of option)

Flag (number)

Value: (number 0 - 10000)

Group Name

Action: Radio Item Remove For Group Added with: 1.2.0
Description: Removes the radio item with the matching name from the F10 radio menu.
Values: Name (Display text of option)

Cockpit