This sums it.
PHP Code:
//#CLIENTSIDE
function onWeaponfired()
{
this.angle := playerdir==3?0:(playerdir+1)*1.57;
this.angle += random(-this.defprop[6],this.defprop[6]);
player.chat := "Bang!";
this.x := this.defprop[9][player.dir][0] + vecx(player.dir)*random(-this.defprop[6],this.defprop[6]);
this.y := this.defprop[9][player.dir][1] + vecy(player.dir)*random(-this.defprop[6],this.defprop[6]);
shoot player.x-this.x,player.y-this.y,player.z,this.angle,0,0,era_shotgun-bullet,;
shoot(player.x-this.x,player.y-this.y,player.z,this.angle,0,0,"era_shotgun-bullet.gani","");
}
That goes doesn't work. The player does say "Bang", but no projectile.
PHP Code:
function onCreated(){
setshape(1,32,32);
}
That doesn't work as well.
EDIT:
Apparently, Shoot works, though that projectile in particular doesn't work. So! I'll find the solution on my own. -- -- Found it. I don't know what was the problem, however. I do believe it's just the using this.x and this.y in weapons are read-only. Thus my projectiles didn't go well.