Using this code:
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.Code:self playFX( <nameoffx>, <origin> );
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> );