|
i'm also having a action w/e problum, only mines diffrent, it works on players (havn't tried online but not gonna et a server anyways) but it's not working on NPCs, please help.
Code:
// NPC made by Medabee5111
if (created) {
toweapons Gun Test;
hide;
}
if (weaponfired) {
freezeplayer 0.2;
players[].sprite = 33;
if(playerdir==0){
setshootparams #w,500;
shoot playerx,playery-1.5,,3.14/2,,0,adv_snowball,;
}
if(playerdir==2){
setshootparams #w,500;
shoot playerx+0.01,playery,,3.14*3/2,,0,adv_snowball,;
}
if(playerdir==1){
setshootparams #w,500;
shoot playerx-0.1,playery-0.3,,3.14,,0,adv_snowball,;
}
if(playerdir==3){
setshootparams #w,500;
shoot playerx+0.1,playery-0.3,,0,,0,adv_snowball,;
}
}
if(actionprojectile){
if(strequals(#p(0),Gun Test)){
lay heart;
}
}
//i made it do lay heart; couse i knew that it would make somthing happen if action projectile worked on the NPC |