Difference between revisions of "DCS func effectSmokeBig"

From DCS World Wiki - Hoggitworld.com
Line 49: Line 49:
 
|examples= The following creates a large smoke and fire effect with a density of 0.75
 
|examples= The following creates a large smoke and fire effect with a density of 0.75
 
     local someZone = trigger.misc.getZone('whatever').point
 
     local someZone = trigger.misc.getZone('whatever').point
 +
    someZone.y = land.getHeight({x = someZone.x, y = someZone.z})  -- compensate for ground level
 
     trigger.action.effectSmokeBig(someZone, 3, 0.75)
 
     trigger.action.effectSmokeBig(someZone, 3, 0.75)
  

Revision as of 01:24, 17 September 2020

Scripting Root

Envrioment: Mission Scripting
Function: effectSmokeBig Added with: 2.5.1
Member Of: trigger.action
Syntax: function trigger.action.effectSmokeBig(table vec3 , enum smoke preset , number density )
Description: Creates a large smoke effect on a vec3 point of a specified type and density.
 1 = small smoke and fire
 2 = medium smoke and fire
 3 = large smoke and fire
 4 = huge smoke and fire
 5 = small smoke
 6 = medium smoke 
 7 = large smoke
 8 = huge smoke 

Density is any value from 0 to 1. For example 0.5


Return Value: function
Return Example: none
Examples: The following creates a large smoke and fire effect with a density of 0.75
   local someZone = trigger.misc.getZone('whatever').point
   someZone.y = land.getHeight({x = someZone.x, y = someZone.z})  -- compensate for ground level
   trigger.action.effectSmokeBig(someZone, 3, 0.75)
Related Functions: Trigger 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

Notes: