View Single Post
  #1  
Old 04-30-2007, 03:56 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Triggering weapons

Anyone know whats wrong with this?
PHP Code:
//#CLIENTSIDE
function onCreated( NULL )
{
  
setTimer( 0.05 );
}
function 
onTimeOut( NULL )
{
  if ( 
keydown2( getkeycode( "d" ), false ) )
  {
    if ( 
this.kpress == false )
    {
      
doTriggerWeapon( NULL );
    }
    
this.kpress = true;
  }
  else
  {
    
this.kpress = false;
  }
  
setTimer( 0.05 );
}
function 
doTriggerWeapon( NULL )
{
  
temp.i = findWeapon( player.weapons[selectedweapon].name );
  
temp.i.onWeaponFired();
} 
GraalScript: Function Weapon Weapons/Basic Sword.onWeaponFired not found in script of Weapon -Player/Trigger

is the error I get in F2 log. Please help :C
__________________
Reply With Quote