UGX-Mods 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

Script messign up spawners

broken avatar :(
Created 12 years ago
by pashan
0 Members and 1 Guest are viewing this topic.
1,735 views
broken avatar :(
×
broken avatar :(
UM Member, Mapper and 3d Modeler
Location: ca
Date Registered: 8 February 2014
Last active: 5 years ago
Posts
835
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Port Arthur
Signature
×
pashan's Groups
Mapper Has released one or more maps to the UGX-Mods community.
this script messes up my spawns; But after i turn teh power on the spawn starts working;

Code Snippet
Plaintext
#include common_scripts\utility; 
#include maps\_utility;
#include maps\_zombiemode_utility;
#include maps\_anim;



main()
{



power_switch_trig = getEnt("turn_power_on", "targetname");
power_switch_trig disable_trigger();

power = getEnt("use_power_switch", "targetname");
power disable_trigger();




level.con = 0;
trigger_one = getent("power_notify", "targetname");
trigger_one sethintstring("Press and Hold &&1 to Turn on Power");
trigger_two = getent("con_fix1", "targetname");
trigger_two sethintstring("Press and Hold &&1 To Connect");
trigger_two setCursorHInt( "HINT_NOICON" );
trigger_three = getent("con_fix2", "targetname");
trigger_three sethintstring("Press and Hold &&1 To Connect");
trigger_three setCursorHInt( "HINT_NOICON" );
trigger_four = getent("con_fix3", "targetname");
trigger_four sethintstring("Press and Hold &&1 To Connect");
trigger_four setCursorHInt( "HINT_NOICON" );

trigger_two Hide();
trigger_two disable_trigger();
trigger_three Hide();
trigger_three disable_trigger();
trigger_four Hide();
trigger_four disable_trigger();



trigger_one waittill("trigger", player);
iprintln("Connection Disconected at three Locations");
trigger_two Show();
trigger_two enable_trigger();
trigger_three Show();
trigger_three enable_trigger();
trigger_four Show();
trigger_four enable_trigger();
trigger_one delete();

trigger_two waittill("trigger", player);
iprintln("Connection Fixed");

level.con += 1;

trigger_three waittill("trigger", player);
iprintln("Connection Fixed");

level.con += 1;

trigger_four waittill("trigger", player);
iprintln("Connection Fixed");

level.con += 1;

if( level.con == 3 )
{

iprintln("Connection Conected");
power enable_trigger();
power_switch_trig enable_trigger();
}
}

broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
last time i checked hide/show function doesnt work for triggers. also there is no reason to define the player variable for the waittills. as of this script i see nothing that affects spawners. perhaps its another script?
Marked as best answer by pashan 12 years ago
broken avatar :(
×
broken avatar :(
RadihaX
Location: caCanada
Date Registered: 2 September 2012
Last active: 5 years ago
Posts
978
Respect
Forum Rank
The Decider
Primary Group
Mapper Elite
My Groups
More
My Contact & Social Links
More
Signature
Overrun
Lockdown
Overrun (Black Ops Mod)
Snowglobe
Leviathan
Abandoned School
Ski Resort
Leviathan Redux
×
JBird632's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Mapper Elite Has shown excellence and experience in the area of custom mapping in the UGX-Mods community.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
JBird632's Contact & Social LinksJBird632JBird632JBird632JBird632JBird632Mapper
My guess is that you called this script without threading it, so the game has to wait until the script has finished before continuing.
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
i didnt think of that. nice job jbird

 
Loading ...