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

Zones

broken avatar :(
Created 10 years ago
by Undeadmetal
0 Members and 1 Guest are viewing this topic.
2,264 views
broken avatar :(
×
broken avatar :(
Location: usOregon
Date Registered: 20 August 2014
Last active: 1 year ago
Posts
308
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Coding Hobbyist, Application & Web Development
Signature
×
Undeadmetal's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Undeadmetal's Contact & Social LinksOnlyAGamer
I have many zones set up, and the zombies in radiant show that they're linked to them but in game it tells me the only zone with linked zombies is my start  :( I added the adjacent zones to the gsc I'm not sure what my issue is. It might be because I used  ex: (enter_zone1) and I have no debris with flags, because I have no debris.  I'm not sure what else to use to activate spawns while I'm in my other areas. (sorry I'm bad with scripting I post here alot)
broken avatar :(
×
broken avatar :(
Location: esMadrid
Date Registered: 27 March 2015
Last active: 5 years ago
Posts
371
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
JIGGLYPUFF used SING! YOU fell asleep!
Signature
×
Soy-Yo's Groups
Soy-Yo's Contact & Social LinksSoy-yoElCerdoRey
If you add adjacent zones, you need to have the flag set somewhere, in a debris for example.

I'm pretty sure this is not the way, but you can place trigger_multiples between one zone and another and make them wait until triggered. Then just set the flag there and the zone should (not tested and maybe I'm wrong) be activated and adjacent (maybe it can be even done without scripting, just Radiant but I don't know).
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 2 years ago
Posts
1,186
Respect
1,332Add +1
Forum Rank
Zombie Colossus
Primary Group
Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntStuffyBluntstuffy@BluntZombieStuffyZombie
If you add adjacent zones, you need to have the flag set somewhere, in a debris for example.

I'm pretty sure this is not the way, but you can place trigger_multiples between one zone and another and make them wait until triggered........

Should work, Bam also made a tut for this a while ago:

http://ugx-mods.com/forum/index.php/topic,4567.msg50471.html#msg50471
broken avatar :(
×
broken avatar :(
Location: usNUKETOWN
Date Registered: 19 February 2014
Last active: 9 years 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.
this is very simple i made this real quick hope it helps  ;)
go to mods/maps/mapname.gsc and add this code at the bottom
Code Snippet
Plaintext
TZP_ActivateZones(){
TZP_Activate_Zombie_Zone = getEntArray( "tzp_activate_zone", "targetname" );
array_thread( TZP_Activate_Zombie_Zone, ::TZP_Activate_Zombie_Zones );
}
TZP_Activate_Zombie_Zones(){
flag_wait( "all_players_connected" );
if( isDefined(self.script_flag) ) flag_init( self.script_flag );
self waittill("trigger", player);
if( isDefined(self.script_flag) ) flag_set(self.script_flag);
// iprintln("turn zone on");
self delete();
}

NEXT

Also in mapname.gsc find maps\_zombiemode::main();
Under maps\_zombiemode::main();

Add this line:
thread TZP_ActivateZones();


save and exit

NEXT RADIANT*

Make a Trigger Multiple And give trigger  kvps of 
Targetname   -    tzp_activate_zone
script_flag     -  name_of_zone_you_want_to_activate


MAKE SURE YOU TICK    AI_ALLIES
0ba6cac8523311921bca67217f682352

so now when a player touches the trigger it will activate the zone
Last Edit: December 19, 2015, 11:14:55 am by thezombieproject

 
Loading ...