View Single Post
  #4  
Old 06-01-2006, 06:56 AM
Andy0687 Andy0687 is offline
Enigma
Join Date: Feb 2002
Posts: 1,072
Andy0687 is on a distinguished road
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.
Reply With Quote