hmm, still not working
here is the control weapon:
PHP Code:
function onActionServerSide(temp.cmd, temp.o, temp.dx, temp.dy) {
if(cmd == "fire" && temp.o == "thatdwarf") {
temp.op = findplayer(o);
temp.obj = putnpc2(op.x, op.y, "");
temp.obj.ndx = dx;
temp.obj.ndy = dy;
temp.obj.angle = getangle(vecx(op.dir), vecy(op.dir));
temp.obj.join("lloydprojectile");
}
}
//#CLIENTSIDE
function onCreated() {
this.on = false;
}
function onWeaponFired() {
this.on = !this.on;
player.chat = this.on;
}
function onMouseDown(code) {
if(code == "left" && this.on) {
triggerServer("gui", this.name, "fire", player.account, mousex, mousey);
}
}
And I also tried the method you suggested in my class Tig, so maybe it's something with the weapon?
The image shoots way off to an extreme corner of the level, then disappears