View Single Post
  #2  
Old 08-24-2002, 10:38 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Anytime I've used lights, they have always been clientsided, including the movements. If you just want them to be MOVING, you can do something like setting level.vars and having it set the light effect on a timeout at like level.lightx,level.lighty. That would make it constantly update to that location.
I do not BELIEVE if (weaponfired) MUST be serversided, I believe it also works clientsided, but because it is used for weapons, it is most generally used w/ a triggeraction. Odds are you may have it perform some kind of clientside action, so you would want to do something like this: (the weapon's name btw is Test)
NPC Code:

if (actionserverside)
{ actions you want after the weaponisfired;
}
//#CLIENTSIDE
if (weaponfired)
{ showimg.. clientside stuff here;
triggeraction 0,0,serverside,Test,;
}


this would make it do serverside actions along w/ clientside on that NPC.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice