View Single Post
  #6  
Old 12-16-2008, 07:34 PM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
hmm, still not working

here is the control weapon:

PHP Code:
function onActionServerSide(temp.cmdtemp.otemp.dxtemp.dy) {
  if(
cmd == "fire" && temp.== "thatdwarf") {
    
temp.op findplayer(o);
    
temp.obj putnpc2(op.xop.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.accountmousexmousey);
  }

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
Reply With Quote