
Posts
184
Respect
39Add +1
Forum Rank
Pack-a-Puncher
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!
init()
{
//VARS INIT
w1_t = getEnt("w1_t", "targetname");
w1_c = getEnt("w1_c", "targetname");
thread run(w1_t, w1_c);
}
run(trig, clip)
{
trig waittill("trigger"); //Trigger_damage in radiant
clip delete(); //DYNAMIC PATH IS A MUST FOR PROPER NODING
trig delete();
}


![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
triggers = getentarray( "shoot_trigger", "targetname" );
array_thread( triggers,::shootme);
shootme()
{
self waittill( "trigger" );
clip = getent( self.target, "targetname" );
clip connectpaths();
clip delete();
self delete();
}
![]() | Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
![]() | Has shown excellence and experience in the area of custom scripting in the UGX-Mods community. |
![]() Oil Rig Beta Access |
main()
{
triggers = getentarray( "shoot_trigger", "targetname" );
array_thread( triggers,::shootme);
}
shootme()
{
my_health = 500;
while(1)
{
self waittill( "damage", amount, attacker );
if( isplayer( attacker )
my_health-=amount;
if( my_health <= 0 )
break;
}
clip = getent( self.target, "targetname" );
clip connectpaths();
clip delete();
self delete();
}