string key -- Key to look up the effect from. string surfacetype -- surfaceType to look up any special effect from. vector origin -- Origin to play the effect at in world space. vector forward -- Forward vector to orientate the effect with in world space. boolean loop -- Whether the effect should be once only, or loop. float maxVisDist -- Maximum distance the effect will be visible from. boolean isStatic -- Whether the particle effect is static or not
- The key must start with 'fx_'.
Looks up an effect on the entity and plays it at the specified position in the world, and returns a handle to the effect. If a special version matching that of the surfaceType passed is found, that will be played, otherwise the exact key name will be used.