Originally Posted by
RobsoN
Ofc,
fx spawn code:
PHP Code:
self playFx(level.robsonTestEffect, self.origin);
fx precache:
PHP Code:
level.robsonTestEffect = loadfx("fx/robson.efx");
Using this code:
Code:
self playFX( <nameoffx>, <origin> );
Will incur a runtime error "unknown function". I don't know the technical name for it, but playFX() is one of those script functions which run independently of any entity - be that a world entity or a player entity. Entities cannot run it; they can only be assigned to it.
You will need to make a player flag out of it and assign it to the playfx() function like this:
Code:
self.test = playfx( <nameoffx>, <origin> );