View Single Post
  #2  
Old 09-16-2011, 06:09 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
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 View Post
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

__________________
Reply With Quote