Using this:
Code:
Money()
{
for(;;)
{
self waittill ( "weapon_fired" );
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
playFx( level._effect["money"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 0, 0, 0, self );
}
}
And when I press F, I want it do do about this:
RadiusDamage( SPLOSIONlocation, 500, 25, 5, self );
And then after 5 seconds, it goes back to
RadiusDamage( SPLOSIONlocation, 0, 0, 0, self );
I've tried with waittill F, wait 5; and all thats stuff, but it just messes it up.. How could I do it?