Effect Usage

Here is the place where you can find all the info you need for using the 'Fire-Pack' effects in your own projects.

Since the effects are 'ready-to-use', you don't need any programming in order to set them up in your own levels, you can assign the effect properties in WED. 

Explosions and spell effects (effects with a limited timeframe) can be initiated by a single call from any script-action or function. These effects immediately create their own emitter and return to the calling action. This means that the calling action is not 'halted' or 'blocked' for the duration of the effect. (For example you can call the explosion function from a spaceship-entity action, and then smoothly fade out the spaceship while the explosion is performed)

Emitters for effects with a non-terminating duration (fire, plasma or smoke) are placed and set up directly in WED. You can control the attributes of the effects by setting some skill values in the emitter object.

In order to use the effects, you just have to place the line 'include <fire.wdl>;'  to your WDL-script. Included files are normally defined at the beginning of the script. Just create a default WDL-script and you will easily find all the default include actions.

next page (effect usage part 2) >>