PlayWorldEffect (script event)

From modwiki

Jump to: navigation, search
Image:Q4square_bg.png The information on this page is specific to Quake 4.

Description

Plays an effect.

Usage

In your script type...

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.


Personal tools
Main