

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. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
notify_missile_fired()
{
self endon( "disconnect" );
while( true )
{
self waittill( "weapon_fired" );
weapon = self GetCurrentWeapon();
if( WeaponType( weapon ) == "projectile" )
{
self thread watch_missile_spawn( weapon, self GetEye(), GetTime() );
}
}
}
watch_missile_spawn( weapon, fire_origin, fire_time )
{
watcher_begin_time = GetTime();
while( GetTime() - watcher_begin_time < 10000 )
{
missile = GetEntArray( "rocket", "classname" );
missile = get_array_of_closest( fire_origin, missile );
for( i = 0; i < missile.size; i ++ )
{
if( ( fire_time - 50 ) == missile[i].birthtime )
{
self notify( "missile_fire", missile[i], weapon );
return;
}
}
wait 0.05;
}
}