UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Topic started by: worstgabena on March 14, 2017, 05:21:40 pm

Title: Activate Power on Start
Post by: worstgabena on March 14, 2017, 05:21:40 pm
I need a short script that will activate power on start, thanks.
Title: Re: Activate Power on Start
Post by: thezombieproject on March 16, 2017, 09:50:39 am
REMOVE SWITCH FROM YOUR MAP.
In your mapname.gsc add this to the bottom
Code Snippet
Plaintext
function CheckForPowerSwitchTZP()
{ level flag::wait_till( "initial_blackscreen_passed" ); wait 5;
Power = GetEntArray( "use_elec_switch", "targetname" );
if(!isdefined(Power) || !Power.size)
{
// level.PowerSwitchExist = false;
level flag::set("power_on");
// turns global power on - tzp
}
}

Also in mapname.gsc  under:  zm_usermap::main();
add this line
Code Snippet
Plaintext
thread CheckForPowerSwitchTZP();

If there is no switch on your map global power will be turned on.