
Posts
308
Respect
50Add +1
Forum Rank
Perk Hacker
Primary Group
Donator ♥
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!

![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |


![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
self thread play_knife_damage_fx();play_knife_damage_fx()
{
while( true )
{
self waittill( "damage", amount, attacker, direction_vec, point, type );
if( !IsDefined( self ) )
{
return;
}
if( type == "MOD_MELEE" && self.damageweapon == "your tactical weapon name" )
{
PlayFXOnTag( level._effect[ "your effect name" ], self, "your fx tag" );
}
}
}#include clientscripts\_utility;
#include clientscripts\_fx;
#include clientscripts\_music;
init()
{
level thread player_init();
}
player_init()
{
waitforallclients();
players = GetLocalPlayers();
for( i = 0; i < players.size; i ++ )
{
players[i] thread play_melee_fx( i );
}
}
play_melee_fx( localClientNum )
{
self endon( "disconnect" );
while( true )
{
while( !IsMeleeing( localClientNum ) )
{
wait 0.001;
}
currentweapon = GetCurrentWeapon( localClientNum );
if( currentweapon == "your tactical weapon name" )
{
PlayViewmodelFX( localClientNum, level._effect[ "your fx name" ], "your fx tag" );
}
while( IsMeleeing( localClientNum ) )
{
wait 0.001;
}
}
}