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

[Tutorial] Buried Zone Activation

broken avatar :(
Created 9 years ago
by jei9363
0 Members and 1 Guest are viewing this topic.
4,516 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Signature
Hey if you had tons of fun on playing my maps please DONATE :)

play ESTATE now, and claim your mansion back from the undead!
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
In buried the first zone outside the start zone is activated by falling into it.

note this requires a path to the next zone still

if you want this place as many trigger_multiples in your map where you know, if the player is here, they ARE falling into
this zone.

give it

targetname
Code Snippet
Plaintext
activate_by_touch

script_flag
(enter_zone_YOURZONE)

in mapname.gsc at the bottom of main()

Code Snippet
Plaintext
	activate_by_touch_trigs = getEntArray("activate_by_touch","targetname"); 

for(i=0;i<activate_by_touch_trigs.size;i++)
activate_by_touch_trigs[i] thread activate_by_touch();

bottom of file

Code Snippet
Plaintext
activate_by_touch()
{

flag_wait( "all_players_connected" );

flag_init(self.script_flag);

activated = false;

while(!activated)
{
players = get_players();

for (i = 0; i < players.size; i++)
if(players[i] isTouching(self))
{
flag_set(self.script_flag);
players[i] iprintln("activated: " + self.script_flag);  //REMOVE when done debugging
activated = true;
}
wait .1;
}
}



Last Edit: October 29, 2014, 05:53:08 pm by jei9363
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
awesome, thanks Jei

+1 from me ;)
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 4 days ago
Posts
1,191
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
Thanks for this. It will definitely come in handy!
broken avatar :(
×
broken avatar :(
Location: usUnited States
Date Registered: 7 March 2014
Last active: 4 days ago
Posts
1,191
Respect
Forum Rank
Zombie Colossus
Primary Group
UGX Site Moderator
My Groups
More
My Contact & Social Links
More
×
MZslayer11's Groups
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
MZslayer11's Contact & Social LinksMZslayer11Service_Code_30#2655
I want to add this in my map and I have a few questions on setup. I'm assuming I still have to add the 'adjacent zone' thing in nazi_zombie_MAPNAME.gsc. Correct me if i'm wrong. I also want to have more than one zone that is activated by touch. Would I keep the targetname the same and just change the 'script_flag' for each specific zone? Sorry if these questions are nooby :-\ Haven't really dealt with zones before.
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 16 March 2014
Last active: 5 years ago
Posts
32
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
mentality's Groups
mentality's Contact & Social Links
I want to add this in my map and I have a few questions on setup. I'm assuming I still have to add the 'adjacent zone' thing in nazi_zombie_MAPNAME.gsc. Correct me if i'm wrong. I also want to have more than one zone that is activated by touch. Would I keep the targetname the same and just change the 'script_flag' for each specific zone? Sorry if these questions are nooby :-\ Haven't really dealt with zones before.

yes to both of those, you will need to add adjacent zones etc. as normal and you just need to change the script flag

 
Loading ...