This is an old revision of the document!
CreateMist(<-pos <-initParams)
Creates a mist at the specified position. A mist is a small piece of 'fog'. The init params control its behavior.
The possible values in initTable are:
Each value in the color and color2 vectors is a floating point number where 1 is full brightness and 0 is minimal brightness. Values over 1 make the mist glow.
if (-?initData not) Table("color" V3(1 0.8 0.8) "color2" V3(0.2 0 0) "birthtime" 40 "fadetime" 20 "direction" V3(1 5 1.5) "startradius" 0.5 "endradius" 1 ) ->initData endif CreateMist(V3(10 1 10 ) <-initData)
once Table("color" V3(1 1 1) "birthtime" 0 "fadetime" 20 "direction" V3(0 1 0) "startradius" 0 "endradius" 10 ) ->initData do(50 0) CreateMist(V3(10 1 10 ) <-initData) loop endonce #This creates a ring-shaped burst of mist particles near the bottom-left corner of the map #Since "direction" represents a vertical axis (in this case "up"), the ring will expand horizontally around said axis #By swapping the "startradius" and "endradius" values, the ring will instead collapse inward
⇐ Index