Okay, If a person is in a level with baddies that shoot stones, arrows, etc, the player's arrows reduce, I've looked through my own NPCs and I have no idea where this came from. Also, if you use this weapon, two arrows are taken away (this is my replacement for the bow, because i thought that it might be the problem, but, wrong. What could be doing this? (Note, this is not a problem with bombs, just arrows)
My bow:
NPC Code:
if(actionserverside){
if(strequals(#p(0),darts)){
playerdarts=playerdarts-1;
// ^ ^I know the right way to do this, I was just expirementing a bit
}
}
//#CLIENTSIDE
if(weaponfired){
triggeraction 0,0,serverside,*Bow,darts;
if(playerdarts>0){
setani shoot,;
if(playerdir==0){
shootarrow up;
}
if(playerdir==2){
shootarrow down;
}
if(playerdir==1){
shootarrow left;
}
if(playerdir==3){
shootarrow right;
}
}
}