Skip to main content

The "sys_effect_init" Function


sys_effect_init(index, effect, duration, loop, reverse, ease);
indexintegerThe index of the row containing the target entity
effectscriptThe effect script to be performed
durationrealSets the duration of the entire effect, in seconds
loopbooleanEnables or disables endlessly looping the effect
reversebooleanEnables or disables reversing the effect
easeinteger/macroSets the effect easing override


Initializes a given scripted effect which can be performed with sys_effect_perform.

As this script is run automatically by vngen_effect_start, it is never necessary to run sys_effect_init manually.

See Effects for a list of included effect scripts and how to make your own.