PlayWorldEffect (script event)
The information on this page is specific to Quake 4 .
Game class
This event operates on an instance of the game class type {{{gameclass}}}
Description
Plays an effect .
Usage
void playWorldEffect( string effectName , vector org , vector angle )
Parameters
- [effectName] - Name of effect to play.
- [org] - Origin where the effect will appear.
- [angle] - Direction of the effect.
Examples
sys.playWorldEffect( "fire64", '0 0 90', '0 90 0' );
Notes
This script event does not return any values. Effect name is an actual string, not a dictionary entry. Make sure to precache the effect. Also note that these can’t loop.