- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]]
===== CreateEffectClipped =====
^ Arguments ^ Result ^ Notation ^
|Effect_Num,X,Y,Z,ScaleX,ScaleY,Speed,Duration|None|%%n1 x1 y1 z1 f1 f2 f3 n2 - %%|
//Added in version 1.78//
=== Description ===
CreateEffectClipped works identical to [[crpl:docs:CreateEffect]], with an added Duration parameter.
Duration is the maximum number of frames to play the effect before ending it. Specifically useful for
effects 12, 15 and 16, which will loop endlessly for the specified duration. All other effects can
be cut short, but will not loop past their normal end.
For a list of effects, see [[crpl:docs:CreateEffect]].
# Play the Terp beam tip effect for 2 seconds.
CreateEffectClipped(15 CellToPixel(CurrentCoords) -1 1.5 1.5 0.05 60)
=== Previews ===
Look [[crpl:docs:CreateEffect#Previews|here]] for effect previews.