View Single Post
  #5  
Old 01-31-2007, 10:09 PM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
Quote:
Originally Posted by JkWhoSaysNi View Post
but how do i identify the npc when using findnpc?

There could be more than one instance of the projectile class.
Well this is what i mean for example

PHP Code:
function onActionServerside() {
 
FindNPC("Params").power clientr.power;
}
//#CLIENTSIDE
function onWeaponFired() {
 
triggerserver("gui"this.name"power");
 
putnpc2...

Then in the class you have something like

PHP Code:
function onCreated() {
 
this.power FindNPC("Params").power;

Hope thats what you were asking anyways and im not making it needlessly complex.
__________________
Reply With Quote