Rechecked code, who is 'my' in function test(); ?
Shouldnt you have a pointer to an entity?
The only way I have used it is directly in the player script or npc itself and it works fine that way.
It knows who 'my' is and sets itself to that doesnt it?


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage