Hm. Try something like this.
For a Weapon NPC:
NPC Code:
a=getangle(this.distancex-x,this.distancey-y);
setshootparams #a,nol_batbossproj;
shoot x,y,z,a,1,-1,nol_batbossproj,nol_batboss.png;
Then set up another Weapon NPC, such as "-Projectiles":
NPC Code:
if (actionserverside) {
if (strequals(#p(0),nol_batbossproj)) {
sendtorc Blah;
}
}
//#CLIENTSIDE
if (actionprojectile) {
if (strequals(#p(1),nol_batbossproj)) {
triggeraction 0,0,serverside,-Projectiles,nol_batbossproj,#v(playerx),#v(playery );
}
}
Should work I think.