View Single Post
  #1  
Old 07-18-2008, 05:30 PM
GULTHEX GULTHEX is offline
Registered User
Join Date: Jul 2008
Posts: 148
GULTHEX can only hope to improve
Exclamation [Request] Health sys that makes my script do damage.

can you make a health system that lets this script do damage



//Made By Gulthex
//Only Works With A Health System o.O

NPC Code:
//#CLIENTSIDE
function onCreated()
{
setTimer( 0.05 );
}
function onTimeOut()
{
replaceani( "sword" );
}
setTimer( 0.05 );

function onKeyPressed( code, key )
{
if ( key == "s" && player.freezetime <= 0 )
{
setAni( "dg_katana_attack", NULL );
freezeplayer( .30 );
temp.tx, temp.ty;
tx = player.x + 1.5 + vecx( player.dir )*2;
ty = player.y + 2 + vecy( player.dir )*2;
triggeraction( tx, ty, "projectile", "punch", player.account );
}
}