


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!#include common_scripts\utility;
#include maps\_zombiemode_utility;
#include maps\_utility;
main()
{
level thread manage_mg();
}
manage_mg()
{
while(1)
{
// SET COST HERE
cost = 1000;
player = undefined;
trigs = getentarray( "activate_mg", "targetname");
for(i = 0; i < trigs.size; i++)
{
trig = trigs[i];
trig setcursorhint("HINT_NOICON");
trig usetriggerrequirelookat();
trig sethintstring("Press &&1 to activate Auto Turrets [Cost: " + cost + "]");
trig waittill("trigger", player);
if(!is_player_valid(player))
{
continue;
}
if(player.score >= cost)
{
level thread activate_mg();
player playsound("cha_ching");
player maps\_zombiemode_score::minus_to_player_score( cost );
trig sethintstring("^3Auto Turrets ^2ON!");
wait(30); // Wait 30 seconds and then turn them off
trig sethintstring("Auto Turrets are currently unavailable");
wait(120); // Cool-down for 120 seconds
trig sethintstring("Press &&1 to activate Auto Turrets [Cost: " + cost + "]");
}
else
{
player playsound("no_cha_ching");
}
}
wait(0.05);
}
}
activate_mg()
{
mgs = getentarray( "auto_mg", "targetname" );
for(i=0;i<mgs.size;i++)
{
mg = mgs[i];
mg setTurretTeam( "allies" );
mg SetMode( "auto_nonai" );
mg thread maps\_mgturret::burst_fire_unmanned();
}
wait(30); // Leave turrets on for 30 seconds
for(i=0;i<mgs.size;i++)
{
mg = mgs[i];
mg notify("stop_burst_fire_unmanned");
mg SetMode( "manual" );
}
}
#include common_scripts\utility;
#include maps\_zombiemode_utility;
#include maps\_utility;
main()
{
automg = GetEntArray("auto_turrets","targetname");
array_thread(automg,::auto_turrets);
}
auto_turrets()
{
level thread activate_mg();
}
activate_mg()
{
mgs = getentarray( "auto_mg", "targetname" );
for(i=0;i<mgs.size;i++)
{
mg = mgs[i];
mg setTurretTeam( "axis" );
mg SetMode( "auto_nonai" );
mg thread maps\_mgturret::burst_fire_unmanned();
}
wait(30); // Leave turrets on for 30 seconds
for(i=0;i<mgs.size;i++)
{
mg = mgs[i];
mg notify("stop_burst_fire_unmanned");
mg SetMode( "manual" );
}
}
well it attack me, but it just stop a few seconds later and dont shot
