Quote:
Originally Posted by JkWhoSaysNi
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.