DCS editor conditions

From DCS World Wiki - Hoggitworld.com
Revision as of 09:01, 13 April 2018 by Grimes (talk | contribs) (Created page with "==General== {{Template:DCSconditions |name= Time More |vNum= 1.2.0 |desc= Checks to see if the mission time is more than a specific value. Returns true once the mission time...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

General

Condition: Time More Added with: 1.2.0
Description: Checks to see if the mission time is more than a specific value. Returns true once the mission time is more than the specified value.
Values: Time (Number)
Condition: Time Less Added with: 1.2.0
Description: Checks to see if the mission time is less than a specific value. Returns true once the mission time is less than the specified value.
Values: Time (Number)
Condition: Time Since Flag Added with: 1.2.0
Description: Checks the elapsed time since a flag was set true. Returns true once the specified time has elapsed since a flag was set true.

Note: This counter gets reset each time the flag value changes.

Values: Time (Number)

Flag (Number)

Condition: Random Added with: 1.2.0
Description: Has a random chance of returning true based on the given value.
Values: Percentage (Number)
Condition: Bomb in Zone Added with: 1.2.0
Description: Checks to see if a bomb has been dropped and is currently in a trigger zone. Returns true if the bomb is detected as flying in the zone.

Note: Trigger zone must be sufficiently sized to detect the bomb at the 1 second interval triggers are checked.

Values: Bomb Type

Trigger Zone

Condition: Signal Flare in Zone Added with: 1.2.15
Description: Checks to see if a given number of signal flares are in the zone. Returns true if the required number of signal flares of the correct color are in a trigger zone.
Values: Flare Color

Value (Number Required)

Trigger Zone

Condition: Mission Score Higher Than Added with: 1.2.0
Description: Compares a coalitions mission score as defined in the mission goals is higher than a given value. Returns true if the coalitions mission score is higher than a value.
Values: Coalition Name

Score (Number -100 to 100)

Condition: Mission Score Lower Than Added with: 1.2.0
Description: Compares a coalitions mission score as defined in the mission goals is lower than a given value. Returns true if the coalitions mission score is lower than a value.
Values: Coalition Name

Score (Number -100 to 100)

Condition: Player Score More Added with: 1.2.0
Description: Compares the players score value to a defined number. Player score is calculated by kills accumulated and the types of objects destroyed. Returns true if the player score is higher than a value.
Values: Score (Number 0 - 10,000)
Condition: Player Score Less Added with: 1.2.0
Description: Compares the players score value to a defined number. Player score is calculated by kills accumulated and the types of objects destroyed. Returns true if the player score is lower than a value.
Values: Score (Number 0 - 10,000)
Condition: Lua Predicate Added with: 1.2.4
Description: Runs the scripting engine code in the text box. Code must have the phrase "return true" in order for the condition to be returned true.
Values: text (Lua Code)

Coalition

Condition: Coalition has Airdrome Added with: 1.2.0
Description: Checks to see if the coalition controls an airbase. Returns true if that coalition does indeed control the airbase.
Values: Coalition Name

Airbase Name

Condition: Coalition has Helipad Added with: 1.2.0
Description: Checks to see if the coalition controls an helipad. Returns true if that coalition has control of the static object helipad.
Values: Coalition Name

Airbase Name

Condition: All of Coalition in Zone Added with: 1.2.0
Description: Checks to see if the entire coalition is inside a trigger zone. Returns true if every single unit is in the trigger zone.
Values: Coalition Name

Trigger Zone Name

Condition: All of Coalition Out of Zone Added with: 1.2.0
Description: Checks to see if the entire coalition is outside of a trigger zone. Returns true if every single unit is outside of a trigger zone.
Values: Coalition Name

Trigger Zone Name

Condition: Part of Coalition in Zone Added with: 1.2.0
Description: Checks to see if any unit of a coalition is inside a trigger zone. Returns true if any coalition unit is in the trigger zone.
Values: Coalition Name

Trigger Zone Name

Condition: Part of Coalition Out of Zone Added with: 1.2.0
Description: Checks to see if any unit of a coalition is outside of a trigger zone. Returns true if any coalition unit is outside of the trigger zone.
Values: Coalition Name

Trigger Zone Name

Group

Condition: Group Alive Added with: 1.2.0
Description: Checks to see if any unit in the specified group is alive in the mission. If any unit in the group is alive, the condition is true.
Values: Group Name
Condition: Group Alive Less Than Added with: 1.2.0
Description: Checks to see if a certain percentage of the group has been destroyed.
Values: Group Name

Percentage (Number)

Condition: Group Dead Added with: 1.2.0
Description: Checks to see if the group is dead. If the entire group is dead, the condition returns true.
Values: Group Name
Condition: All Of Group In Zone Added with: 1.2.0
Description: Checks to see if the entire group is inside of a trigger zone. Returns true if all alive units in a group are in the zone.
Values: Group Name

Zone Name

Condition: All Of Group Out of Zone Added with: 1.2.0
Description: Checks to see if the entire group is outside of a trigger zone. Returns true if all alive units in a group are outside of the zone.
Values: Group Name

Zone Name

Condition: Part Of Group In Zone Added with: 1.2.0
Description: Checks to see if the any unit in a group is inside of a trigger zone. Returns true if any unit in the group is inside the zone.
Values: Group Name

Zone Name

Condition: Part Of Group Out of Zone Added with: 1.2.0
Description: Checks to see if the any unit in a group is outside of a trigger zone. Returns true if any alive unit in a group is outside of the zone.
Values: Group Name

Zone Name

Unit

Condition: Unit Alive Added with: 1.2.0
Description: Checks if a unit is alive. Returns true if the unit is alive.
Values: Unit Name
Condition: Unit Alive Less Than Added with: 1.2.0
Description: Checks if a unit is damaged beyond a certain point. Returns true if the unit is alive, but has less than the percentage of life remaining.
Values: Unit Name

Percentage (0 to 100)

Condition: Unit Damaged Added with: 1.2.0
Description: Checks if a unit is damaged. Returns true if the unit is alive and damaged.
Values: Unit Name
Condition: Unit Dead Added with: 1.2.0
Description: Checks if a unit is dead. Returns true if the unit is dead.
Values: Unit Name
Condition: Unit Inside Zone Added with: 1.2.0
Description: Checks if a unit is inside a trigger zone. Returns true if the unit is inside of the trigger zone.
Values: Unit Name

Trigger Zone

Condition: Unit Outside Zone Added with: 1.2.0
Description: Checks if a unit is outside of a trigger zone. Returns true if the unit is outside of the trigger zone.
Values: Unit Name

Trigger Zone

Condition: Unit Inside Moving Zone Added with: 1.2.0
Description: Checks if a unit is inside a trigger zone that is "attached" to another units position. Returns true if the unit is inside of the trigger zone.
Values: Unit Name

Trigger Zone

Unit Name trigger Zone is attached to.

Condition: Unit Outside Moving Zone Added with: 1.2.0
Description: Checks if a unit is outside a trigger zone that is "attached" to another units position. Returns true if the unit is outside of the trigger zone.
Values: Unit Name

Trigger Zone

Unit Name trigger Zone is attached to.

Condition: Unit's Altitude Higher Than Added with: 1.2.0
Description: Checks if a unit is higher than a given altitude. Returns true if the unit is higher than the altitude, which is measured in meters and Above Sea Level.
Values: Unit Name

Altitude ASL in meters

Condition: Unit's Altitude Lower Than Added with: 1.2.0
Description: Checks if a unit is lower than a given altitude. Returns true if the unit is lower than the altitude, which is measured in meters and Above Sea Level.
Values: Unit Name

Altitude ASL in meters

Condition: Unit's Speed Higher Than Added with: 1.2.0
Description: Checks if a unit is speed is higher than a given value. Returns true if the unit is traveling faster than the given value, which is measured in meters per second.
Values: Unit Name

Speed in m/s

Condition: Unit's Speed Lower Than Added with: 1.2.0
Description: Checks if a unit is speed is lower than a given value. Returns true if the unit is traveling slower than the given value, which is measured in meters per second.
Values: Unit Name

Speed in m/s

Condition: Unit's Vertical Speed in Limits Added with: 1.2.0
Description: Checks if a unit is ascending or descending within a given range. Returns true if the units vertical speed is within the two limits. Speed is measured in m/s
Values: Unit Name

Minimum vertical speed (-300 to 300)

Maximum vertical speed (-300 to 300)

Condition: Unit's Bank in Limits Added with: 1.2.0
Description: Checks if a unit is banking within limits. Returns true if the units roll angle is within the two limits.
Values: Unit Name

Minimum roll (-180 to 179)

Maximum roll (-179 to 180)

Condition: Unit's Heading in Limits Added with: 1.2.0
Description: Checks if a unit is heading within limits. Returns true if the unit is pointing within the specified azimuth limits.
Values: Unit Name

Minimum Heading (0 to 360)

Maximum Heading (0 to 360)

Condition: Unit's Pitch in Limits Added with: 1.2.0
Description: Checks if a unit is pitching within limits. Returns true if the units pitch angle is within the two limits.
Values: Unit Name

Minimum pitch (-180 to 179)

Maximum pitch (-179 to 180)

Flag

Condition: Flag is True Added with: 1.0
Description: Checks the value of the given flag. If the flag has a value of 1 or more (True) then the condition is true.
Values: Flag (number). Designates the flag to check
Condition: Flag is False Added with: 1.0
Description: Checks the value of the given flag. If the flag has a value of 0 (False) then the condition is true.
Values: Flag (number). Designates the flag to check
Condition: Flag is More Added with: 1.2.0
Description: Checks the value of the given flag and compares it to a number value. If the flag has a value that is MORE than the given number, then the condition is true.
Values: Flag (number). Designates the flag to check

Value (number). Value to compare the flag against

Condition: Flag is Less Added with: 1.2.0
Description: Checks the value of the given flag and compares it to a number value. If the flag has a value that is LESS than the given number, then the condition is true.
Values: Flag (number). Designates the flag to check

Value (number). Value to compare the flag against

Condition: Flag Equals Added with: 1.2.0
Description: Checks the value of the given flag and compares it to a number value. If the flag and the number have the same value the condition is true.
Values: Flag (number). Designates the flag to check

Value (number). Value to compare the flag against

Condition: Flag Equals Flag Added with: 1.2.0
Description: Checks the value of the two given flags. If both flags have the same value the condition is true.
Values: Flag (number). Designates the flag to check

Flag (number). Designates the flag to check

Condition: Flag is Less than Flag Added with: 1.2.0
Description: Checks the values of the two given flags and compares them. If the second flag has a lower value than the first flag, the condition is true.
Values: Flag (number). First Flag

Flag (number). Second Flag

Cockpit

Cockpit triggers only work in single player and are intended for training missions.

Condition: X: Cockpit Argument In Range Added with: 1.2.0
Description: Checks if the cockpits argument id is within a given range. Returns true when the argument is within the specified range.
Values: Argument Id (number)

Minimum Range (-1.0 to 1.0)

Maximum Range (-1.0 to 1.0)

Condition: X: Cockpit Highlight is Visible Added with: 1.2.0
Description: Checks if the highlighted argument is within the players view. Returns true if the player is actively looking at the position of the instrument the argument is associated with.
Values: Argument Id (number)