

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. |
zomb_attack_shield_think()
{
//self is the shield
while(shield.health > 0 && shield.placed) //replace with the respective variables
{
zombs = GetAiSpeciesArray( "axis", "all" );
for(i=0;i<zombs.size;i++)
{
if(!isdefined(zombs[i].attacking_shield))
zombs[i].attacking_shield = false;
if(distance(zombs[i].origin, shield.origin) < 50 && !zombs[i].attacking_shield )
zombs[i] thread attack_shield(shield);
}
}
}
attack_shield(shield)
{
self.attacking_shield = true;
self animscripted("meleeanim", self.origin, self.angles, random(level._zombie_melee["zombie"]));
while ( 1 )
{
self waittill("meleeanim", note);
if ( note == "end" )
break;
else if ( note == "fire" )
shield.health = shield.health - 1; // replace .health woth the shield health variables
}
wait 1.5;
self.attacking_shield = false;
}![]() | |
![]() | 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. |
![]() BO3 Modtools Alpha | This user has access to the Black Ops 3 Modtools Alpha |
ok, next question, whats the best way to spawn a clip there too?
place_juggernaut_machine()
{
machine_origin = (172, 594, 145);
machine_angles = (0, 0, 0);
machine = Spawn( "script_model", machine_origin );
machine.angles = machine_angles;
machine setModel( "zombie_vending_jugg_on" );
machine.targetname = "vending_jugg";
machine_trigger = Spawn( "trigger_radius_use", machine_origin + (0 , 0, 30), 0, 20, 70 );
machine_trigger.targetname = "zombie_vending";
machine_trigger.target = "vending_jugg";
machine_trigger.script_noteworthy = "specialty_armorvest";
machine_clip = Spawn( "script_model", machine_origin + (0, 0, 100) );
machine_clip.angles = machine_angles;
machine_clip SetModel( "collision_geo_64x64x256" );
machine_clip Hide();
}