
Posts
307
Respect
89Add +1
Forum Rank
Perk Hacker
Primary Group
Scripter
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!
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
...more code...
zombie = spawn_zombie( ent );
zombie.zombie_move_speed = "walk";
zombie thread check_for_running();
...more code...
check_for_running()
{
iPrintLNBold("Check run speed");
level endon("boss_killed");
while(IsAlive( self ))
{
if(self.health < self.maxhealth)
{
self.zombie_move_speed = "sprint";
iPrintLNBold("Sprint");
wait (10);
self.zombie_move_speed = "walk";
iPrintLNBold("Walk");
self.maxhealth = self.health;
}
wait(1);
}
}



![]() | 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 |
var = randomintrange(1, 8);
self set_run_anim( "walk" + var );
self.run_combatanim = level.scr_anim[self.animname]["walk" + var];
var = randomintrange(1, 4);
self set_run_anim( "sprint" + var );
self.run_combatanim = level.scr_anim[self.animname]["sprint" + var];
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
Code SnippetPlaintextvar = randomintrange(1, 8);
self set_run_anim( "walk" + var );
self.run_combatanim = level.scr_anim[self.animname]["walk" + var];
and Code SnippetPlaintextvar = randomintrange(1, 4);
self set_run_anim( "sprint" + var );
self.run_combatanim = level.scr_anim[self.animname]["sprint" + var];
