View Single Post
  #1  
Old 07-07-2007, 04:00 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Shoot(); problems

Alright messing around with shoot for the first time in awhile and I get it to display but the gani disappears after one sec it seems. OnActionProjectile is never called.

PHP Code:
//#CLIENTSIDE
function onWeaponFired() 
{
  
freezeplayer( 0.45);
  
setShootParams( this.x, this.y);

  
temp.angle = getangle( vecx( player.dir), vecy( player.dir));

  
shoot(player.x, player.y, player.z, temp.angle, degtoRad( 22.5), random( 0.5,0.8), "omega_ol_tomahawk", NULL);

  
setAni( "kick", NULL);
  
sleep( 0.45);
  
setAni( "idle", NULL);
}

function 
onActionProjectile() 
  
putLeaps( 4, params[ 0], params[ 1]); 
__________________
Deep into the Darkness peering...
Reply With Quote