Don't use an NPC for that. Strip the GUI and serverside code from that and put it in a weapon.
Using triggerAction for stuff like this is seldom a good idea.
In your level NPCs, you can do this to trigger a weapon:
Quote:
Originally Posted by cbk1994
It's actually cleaner since it keeps all your code in one place and lets you trigger it, if you do it right.
PHP Code:
//#CLIENTSIDE function onPlayerTouchsMe() { (@ "-SkiLift").trigger("startLift"); }
PHP Code:
//#CLIENTSIDE function onStartLift() { setTimer(1); // etc }
|