Difference between revisions of "DCS singleton trigger"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
Line 21: Line 21:
  
 
}}
 
}}
 +
[[Category:Game Patch 1.2.0|trigger singleton]]

Latest revision as of 22:21, 17 March 2022


Singleton: trigger Added with: 1.2.0
Description: The trigger singleton contains a number of functions that mimic actions and conditions found within the mission editor triggers. As a result these functions provide an easy way to interface with triggers setup within the mission editor. Additionally a few trigger functions act as a gateway between mission editor triggers and related scripting functions.
Functions: ctfColorTag, getUserFlag, setUserFlag, getZone, explosion, smoke, effectSmokeBig, effectSmokeStop, illuminationBomb, signalFlare, radioTransmission, stopRadioTransmission, setUnitInternalCargo

outSound, outSoundForCoalition, outSoundForCountry, outSoundForGroup, outSoundForUnit, outText, outTextForCoalition, outTextForCountry, outTextForGroup, outTextForUnit

addOtherCommand, removeOtherCommand, addOtherCommandForCoalition, removeOtherCommandForCoalition, addOtherCommandForGroup, removeOtherCommandForGroup

markToAll, markToCoalition, markToGroup, removeMark, markupToAll, lineToAll, circleToAll, rectToAll, quadToAll, textToAll, arrowToAll, setMarkupRadius, setMarkupText, setMarkupFontSize, setMarkupColor, setMarkupColorFill, setMarkupTypeLine, setMarkupPositionEnd, setMarkupPositionStart

setAITask, pushAITask, activateGroup, deactivateGroup, setGroupAIOn, setGroupAIOff, groupStopMoving, groupContinueMoving

Enumerators and Other Data: enum for smoke color
trigger.smokeColor
  Green   0
  Red     1
  White   2
  Orange  3
  Blue    4


enum for flare color

trigger.flareColor 
  Green   0
  Red     1
  White   2
  Yellow  3
Notes: