Thread: shoot() problem
View Single Post
  #1  
Old 01-26-2009, 03:53 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
shoot() problem

For some reason, shoot() is not working at all.

Here is the code I have. Any ideas on how to fix it? For the record, setani() works fine.

PHP Code:
//#CLIENTSIDE

public function onMain() { 
  if (
clientr.equipped[3] == "gun") {
    
temp.plx = player.x + 1.1 + vecx(player.dir) * 1.5;
    
temp.ply = player.y + 1.5 + vecy(player.dir) * 1.5;
    
temp.projectile_angle = getangle(temp.plx, temp.ply);
    
    
freezeplayer(0.2);
    
    
setani("insom_" @ clientr.equipped[0] @ "-fire", "");
    
    
showtext(230, temp.plx, temp.ply, "", "", "X");
    
    
setshootparams(clientr.equipped[5]);
    
shoot(temp.plx, temp.ply, player.z, temp.projectile_angle, 1, 1, "insom_bullet", "test");
  }
} 
Reply With Quote