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