Quote:
|
Originally Posted by Omini
Awesome. If that script is used "setshootparams(shoot,this.gunpow);", how would that be used in another NPC? Is this.gunpow; still able to be used or does that turn into a param?
|
It will turn into a param.
NPC Code:
setshootparams("shoot",this.gunpow);
NPC Code:
function onActionProjectile() {
if (params[0] == "shoot") {
somestuff -= params[1];
}
}
Or you could do whatever you want with the params really. You can put the onActionProjectile in any other npc, probably a system npc.