NPC Code:
shoot x,y,z,angle,zangle,power,gani,//img the gani uses
I don't fool around much with setshootparams, thouigh it is necessary for making the gun do damage, among other thing. Normally I'll script something like this:
NPC Code:
if (created) {
//assign Variables, offline command toweapons weaponname
//including this.damage=weapondamage/2
}
if (weaponequipped) {
leave blank because it isn't called right for me sometimes
}
if (weaponfired) { //Or the script for it to be automatic
//GANIs for walk,idle,and fire
//Use setshootparams as #v(this.damage)
//timeout&freeze
}
if (timeout) {
//Assign directions for the bullets and the shoot command here
}
//And then whatever you want the script to do, but you shouldn't stuff so much into a weapon script.
Had to get to it before raeiphon raids this thread.
Zulu, somewhere in my post I said something like "these are the people who play regularly." I almost never see you on.
And then there's also the actionprojectile command, also necessary for making it do damage. Put that in another NPC.