View Single Post
  #3  
Old 08-25-2002, 12:25 AM
Spark910 Spark910 is offline
Ex-Graal Global
Spark910's Avatar
Join Date: Oct 2001
Location: England
Posts: 10,892
Spark910 has a spectacular aura about
Quote:
Originally posted by emortylone
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
Ok well Ill just stick with what I though, Using client side for anything to do with lights and it for weaponfired. Should work. You see I couldnt do that as I dont have acess to a NPC server yet, By Yet I mean I hope to in future.