why wont this npc work

whats wrong with this when i try to fire it it wont do anything

GRAWP001
REALNAME ppsh41
IMAGE wbomb1.png

//#CLIENTSIDE
if (playerdir=0){
this.x=playerx-1;
this.y=playery-2;
}
//left
if (playerdir=1){
this.x=playerx-2;
this.y=playery;
}
//down
if (playerdir=2){
this.x=playerx+1;
this.y=playery+2;
}
//right
if (playerdir=3){
this.x=playerx+2;
this.y=playery;
}
}

if (weaponfired){
setshootparams PARAMEQUALS;
//shoot x,y,z,angle,zangle,power,gani,ganiparams;
shoot this.x,this.y,playerz,(playerdir + 1) * pi / 2,at-newbullet,;
setani era_hyde-ppsh41-fire,;
replaceani idle,era_hyde-ppsh41-idle;
replaceani walk,era_hyde-ppsh41-walk;
freezeplayer 0.0383;
sleep 0.1;
}
if (actionprojectile) {
if(strequals(#p(index),PARAMEQUALS)) {
hurt 3;
}
}

i was nine when i was here along time ago

im 12 now :slight_smile:

so im sorry if i was annoying back then

turn that #p(index) into “#p(0)”
freezeplayer 0.0383;, minimum delay is 0.05 seconds.
All of the playerdir == stuff before the if(weaponfired), useless, get rid of it and change this.x to playerx and this.y to playery
If you want to keep it, put it inside of the if(weaponfired){ } but before the “shoot this.x,this.y,etc”

Remove //#CLIENTSIDE
We’re in the process of getting the GServer ready for NPC-Servers.

thank you :slight_smile:

___Merged doublepost__________________

i put it like this

if (weaponfired){
setshootparams PARAMEQUALS;
shoot playerx,playery,playerz,(playerdir + 1) * pi / 2,at-newbullet,;
setani era_hyde-ppsh41-fire,;
replaceani idle,era_hyde-ppsh41-idle;
replaceani walk,era_hyde-ppsh41-walk;
freezeplayer 0.05;
sleep 0.1;
}
if (actionprojectile) {
if(strequals(#p(0),PARAMEQUALS)) {
hurt 3;
}
}

but its still not working :frowning:

___Merged doublepost__________________

plzzzzzz sombody reply

mega graal is my sevrer lolzzzzz

You joined 1 year ago. How would you be able to get 3 years older during that time? >_<

He’s a dog, can’t you tell by his lack of IQ?

That’s in dog years.

i usto have another acc here thats how :stuck_out_tongue:

That’s how you did what? If you mean you grew up because you had another account on here you are a damn retard. Having an account here has NOTHING to do with growing up.

nevermind i fixed it, so sombody please close this topic.