Activate Power on Start

broken avatar :(
Created 1238 days ago
by worstgabena
0 Members and 1 Guest are viewing this topic.
1,019 views
broken avatar :(
×
broken avatar :(
Location: usAnywhere but here
Date Registered: 31 October 2016
Last active: 824 days ago
Posts
33
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
worstgabena's Groups
worstgabena's Contact & Social Links
I need a short script that will activate power on start, thanks.
broken avatar :(
×
broken avatar :(
Location: usNUKETOWN
Date Registered: 19 February 2014
Last active: 1227 days ago
Posts
177
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombie Specialist
Signature
×
thezombieproject's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
REMOVE SWITCH FROM YOUR MAP.
In your mapname.gsc add this to the bottom
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
thread CheckForPowerSwitchTZP();

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

 

Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch
Loading ...