Difference between revisions of "DCS func ctfColorTag"
From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= ctfColorTag |vNum= 2.5.6 |par1= trigger.action |par2= |par3= |par4= |desc= Creates a smoke plume behind a speci...") |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|desc= Creates a smoke plume behind a specified aircraft. When passed 0 for smoke type the plume will be disabled. When triggering the on the same unit with a different color the plume will simply change color. | |desc= Creates a smoke plume behind a specified aircraft. When passed 0 for smoke type the plume will be disabled. When triggering the on the same unit with a different color the plume will simply change color. | ||
+ | |||
+ | Optional value for altitude can be set. This value is in meters and defines the altitude at which the aircraft must be for the smoke to dispense. If the aircraft goes below that altitude the smoke will stop. As long as the smoke is enabled the toggling on/off by changing altitude is automated. | ||
Disable 0 | Disable 0 | ||
Line 40: | Line 42: | ||
|reqType4= | |reqType4= | ||
− | |optType1= | + | |optType1= |
+ | |||
+ | |optName1= | ||
|optType2= | |optType2= | ||
− | |examples= The | + | |examples= The following creates a blue smoke plume on an aircraft named "IWishEDWouldDocumentFeaturesMore" that will be enabled based on the altitude the aircraft was at when the function was run. |
+ | |||
+ | trigger.action.ctfColorTag('IWishEDWouldDocumentFeaturesMore', 5) | ||
|related= | |related= | ||
[[DCS_singleton_trigger|'''Trigger Functions:''']] {{ListOfTriggerFuncs}} | [[DCS_singleton_trigger|'''Trigger Functions:''']] {{ListOfTriggerFuncs}} | ||
− | |notes= | + | |notes= The color matches the smokeColor enumerator, but the values are offset up by 1. |
}} | }} | ||
− | [[Category:Singleton Functions| | + | [[Category:Singleton Functions|ctfColorTag]] |
+ | [[Category:Game Patch 2.5.6|ctfColorTag]] |