


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!main()
{
maps\_load::main();
level.player takeallweapons();
level.player giveWeapon("mp5");
level.player switchToWeapon("mp5");
level.healthRegenDisabled = true;
regenTime = 1000;
level.playerHealth_RegularRegenDelay = regenTime * 1000;
level.healthOverlayCutoff = 1000;//.55;//getdvarfloat("scr_player_healthregentime");
myArray = getentarray("badguys", "targetname");
for(i=0;i<myArray.size;i++)
{
myArray[i] thread HealthController(myArray[i]);
}
}
HealthController(guy)
{
CanRegen = false;
CurrentPlayerHealth = level.player.health;
while(1)
{
if(CanRegen)
{
level.player.health = level.player.maxhealth;
CurrentPlayerHealth = level.player.maxhealth;
iprintlnbold("hey its not crashing");
CanRegen = false;
break;
}
else
{
level.player.health = CurrentPlayerHealth;
iprintlnbold("Its false");
}
guy waittill("damage", damage);
CanRegen = true;
iprintlnbold("It got below the canregen");
}
}![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
myArray = getentarray("badguys", "targetname");
//find this
self thread zombie_think();
//add this below it
self thread PlayerHeal();
//make new function similar to this below the init function end }
PlayerHeal(){
While(isdefined(self) && self.health>0){//edit, added while loop
self waittill( "damage", amount, attacker );
if(is_player_valid( attacker ) && attacker.health <= attacker.maxhealth){
if(attacker.health+10 <= attacker.maxhealth){
attacker.health = attacker.health+10;
}else{
attacker.health = attacker.maxhealth;
}
}
}
}
![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
badguys is a spawner in the level. I tried it out and if I make it a regular AI it works. I need to use spawners but I'm not sure how to get the actual AI that it spawns so i might have to think of a different way of doing this.

![]() | Has released one or more maps to the UGX-Mods community. |
![]() | Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
Hm I'm having trouble figuring this out. I can't seem to get the targetname of the AI's since they are being spawned by the spawner. Is there an easy way to get this? The badguys never acctually take damage since its just a spawner..