Server: Laysuf
Account: Gravis2k
Position: Admin
NPC Server? True
NPC: I need a npc that when transformed into a bird and flying it wont stop when the button is let go but glide slowly to a stop also to be able to fly over walls and buildings (which could be turned on and off by flags) and to have a higher speed then normal walking
Date: When ever, i'm in no rush for it.
Below i will paste what i have done so far which is setting the gani's to each ani and the land and fly options, please feel feel to make this better if you like
NPC Code:
//#CLIENTSIDE
if (weaponfired){
if (this.on==0) {
playerdir=2;
setani birdtransform,;
replaceani idle,birdidle1;
replaceani sword,birdattack3;
replaceani walk,birdidle1;
replaceani sit,birdidle1;
replaceani pull,birdidle1;
replaceani push,birdidle1;
replaceani swim,birdidle1;
this.on=1;
}
else if (this.on==1){
playerdir=2;
setani birdreform1,;
replaceani idle,idle;
replaceani sword,sword;
replaceani walk,walk;
replaceani sit,sit;
replaceani pull,pull;
replaceani push,push;
replaceani swim,swim;
this.on=0;
}
}
if (playerchats){
if (strequals(#c,land)){
setplayerprop #c,:
escends slowly::;
setani birdland2,;
replaceani sit,birdsit1;
disabledefmovement;
}
else if (strequals(#c,fly)){
setplayerprop #c,::Rises rapidly into the air::;
setani birdfly5,;
replaceani sit,birdidle;
enabledefmovement;
}
}