



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()
{
iprintlnbold("tourelles init");
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("Maintenez &&1 pour activer la tourelle [ cout: 1000]");
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("^3Tourelles Automatique ^2Activee!");
wait(60); // Wait 30 seconds and then turn them off
trig sethintstring("Tourelle non disponible!");
wait(120); // Cool-down for 120 seconds
trig sethintstring("Maintenez &&1 pour activer la tourelle [ cout: 1000]");
}
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(60); // Leave turrets on for 60 seconds
for(i=0;i<mgs.size;i++)
{
mg = mgs[i];
mg notify("stop_burst_fire_unmanned");
mg SetMode( "manual" );
}
}