<- CRPL reference <- Unit Commands

CreateEffect

Arguments Result Notation
Effect_Num,X,Y,Z,ScaleX,ScaleY,SpeedNonen1 x1 y1 z1 f1 f2 f3 -

Description

CreateEffect allows you to play one of (currently) 17 in-game animations (explosions, the smoke that flies out when something lands, etc.).

Effects are useful for visual flare. For instance when a unit blows up you might want to make a custom explosion.

List of effects:

# Play an effect at the current coords, in front of the current unit.

# Standard Notation
14 CurrentCoords CellToPixel -1 1.5 1.5 0.05 CreateEffect

# Warp Notation
CreateEffect(14 CellToPixel(CurrentCoords) -1 1.5 1.5 0.05)
12, 15 and 16 were previously unending animations. For use with CreateEffect, they are now clipped to 30 frames. To specify the desired duration of these effects, or clip any of the other effects short, see CreateEffectClipped.

Previews

The previews below play at 1/30 speed. (0.033333…)

Effect Name Preview
0 Shot
Explosion
1 Mortar
Shell
Explosion
2 Bertha
Shell
Explosion
3 Runner
Explosion
4 Spore
Explosion
5 Totem
Explosion
6 Creeper
AA Shell
Explosion
7 Unit
Explosion
8 Move
Trail
9 Short
Trail
10 Spore
Trail
11 Smoke
Ring
Effect
12 Particle
Beam
Damage
13 Pulse
Cannon
Shell
Effect
14 Stunned
Effect
15 Terra
Mod
Cell
16 Totem
Firing