SpawnFx( <effect id>, <position>, <forward>, <up> )


Module: Effects

Summary:

Create an effect entity that can be re-triggered efficiently at arbitrary intervals. This doesn't play the effect. Use delete to free it when done.



Example:

fxObj = SpawnFx( fxId, pos, dir );



Required Args:

  • 1 : <effect id> The effect id returned by loadfx.
  • 2 : <position> The position of the effect.


Optional Args

  • 1 : <forward> The forward vector for the effect
  • 2 : <up> The up vector for the effect