~~NOTOC~~ <=[[4rpl:start| Index]]\\ <= [[4rpl:start#Effects]] ====== CreateEffect ====== CreateEffect(<-effectName <-pos <-scale) ===== Description ===== Creates an effect. The effect will be placed at the supplied 3D vector position. The scale vector will be applied to the effect to scale it. The name of the effect can be:\\ * sparks * materialize * radial (default radius: ~11) * radial2 (default radius: ~11) * explosion * explosion2 * explosion3 * explosion4 * explosion5 ===== Examples ===== CreateEffect("materialize" V3(10 5 20) V3(1 1 1)) CreateEffect("explosion2" GetUnitPosition(self) V3(1 1 1)) ===== Effects ===== :!: Note: **radial2** should be played slightly higher on the Y axis than unit position for it to display correctly. Also it's .y vector for size does not impact it's vertical size unlike with the other effects. V3(1 0.5 1) will create an oval, V3(1 1 1) will create a circle. [{{cw4_effect_sparks.gif|sparks}}] [{{cw4_effect_materialize.gif|materialize}}] \\ [{{cw4_effect_radial.gif|radial}}] [{{cw4_effect_radial2.gif|radial2}}] \\ [{{cw4_effect_explosion.gif|explosion}}] [{{cw4_effect_explosion2.gif|explosion2}}] [{{cw4_effect_explosion3.gif|explosion3}}] [{{cw4_effect_explosion4.gif|explosion4}}] [{{cw4_effect_explosion5.gif|explosion5}}] <=[[4rpl:start| Index]]