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

2-way buyable doors

broken avatar :(
Created 9 years ago
by DutchAlistic
0 Members and 1 Guest are viewing this topic.
2,181 views
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 14 October 2014
Last active: 4 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
DutchAlistic's Groups
DutchAlistic's Contact & Social Links
Hello,

I'm building my first zombie map and I got stuck.
My map goes in a circle when you buy all the doors. This creates that you will need to be able buy doors from both sides. That's my problem I don't know how to create a door that you can buy from both sides.
I tried making a second trigger on the other side of the door but when I linked the door to the second trigger it lost it's connection to the first trigger. How do I solve this

Thanks in advance
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 2 April 2014
Last active: 2 years ago
Posts
481
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
If it's not perfect, you'll never see it.
Signature
Learn by doing, not copy and pasting.

Enjoy my 2015 contest map, a simple map with bo1-bo2 features
http://ugx-mods.com/forum/index.php?topic=14968.msg149200#
×
Centric's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Centric's Contact & Social Linkscentricccentric_
Literly drag the trigger across the door to the other side.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
As long as the trigger is still triggering the blocker then your good to go. The triggers aren't supposed to be connected to each other.

http://gyazo.com/8fd8935a1da90fc5e7007536921a9ef7
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 14 October 2014
Last active: 4 years ago
Posts
5
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
DutchAlistic's Groups
DutchAlistic's Contact & Social Links
But when i drag to the other side how do i asign the kvps.
Because i will het 2 enter_zonename values doean't thqt cause a problem?


Double Post Merge: February 03, 2015, 09:55:38 am
Retyping that last part :D :D (it was on my phone in a hurry)

if i drag it over the door and assign it it's kvps it will have 2 script flags. That isnt a problem?
It also isn't a problem if you buy it from bedroom_zone and the trigger says enter_bedroom_zone?


Double Post Merge: February 03, 2015, 09:58:24 am
Just had time to try this. Don't what i did wrong the first time but now when i copy the trigger it works fine. Don't know what i did wrong the first time
many thanks
Last Edit: February 03, 2015, 09:58:24 am by DutchAlistic
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
you could do another identical trigger on the other side, and just change the script_flag KVP to the other way around, like

add_adjacent_zone( "zone_0", "zone_1", "zone_0_to_zone_1" );
add_adjacent_zone( "zone_1", "zone_0", "zone_1_to_zone_0" );

use "zone_0_to_zone_1" on one side and "zone_1_to_zone_0". Pretty sure thats all youd need to change
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
you could do another identical trigger on the other side, and just change the script_flag KVP to the other way around, like

add_adjacent_zone( "zone_0", "zone_1", "zone_0_to_zone_1" );
add_adjacent_zone( "zone_1", "zone_0", "zone_1_to_zone_0" );

use "zone_0_to_zone_1" on one side and "zone_1_to_zone_0". Pretty sure thats all youd need to change
You don't even need to do that much -
Code Snippet
Plaintext
add_adjacent_zone( "zone_0", "zone_1", "zone_0_to_zone_1" );
And the script_flag
Code Snippet
Plaintext
enter_zone_0_to_zone_1
on one single trigger (stretched so it is triggerable from both sides of the debris, or 2 identical triggers if you prefer) would activate both zone_0 and zone_1 depending on which side you opened it from, as zones are 2-way by default.
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 9 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
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.
Stretching one trigger through both sides of a door/debris usually breaks the trigger because the center of it is what you need to be able to see in order to interact with it. Just make one trigger on one side like you normally would, then make a second trigger on the other side with the same KVPs (except possibly a different zone flag if applicable), and give it the same targetname as the first trigger. You will see that both triggers are linked to the debris with a line if you did it correctly.
broken avatar :(
×
broken avatar :(
Location: caCanada
Date Registered: 9 May 2014
Last active: 7 months ago
Posts
399
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
×
GTTClan's Groups
I read the most complicated answers ever... Jeez, should I just show you what to do with a bit of text? I'll just leave this here:

1. Duplicate/Copy the trigger for the door.
2. Drag the duplicated Trigger for the door on the other side of the door. Pretty simple...
3. Change the ZONE KVP's to what it will unlock to. Example: If it's a door from Start_Zone going to Zone2, then rename the duplicated triggers target "Start_Zone". If you need even more clarification, ask.

4. Go into your Nazi_Zombie_mapname.GSC and find the Zone Codes. add_adjacent_blah blah blah.

And read my script and do this:



This is literally working for me on a HUGE MAP with a TON of doors. It's a KINO styled map so you can choose to go either way around the map left or right.

If you succeed, the door and the 2 triggers will link with a "BLUE LINE" This means they are good to go. Make sure you change nothing on the KVP's but the ZONE it's calling out for or Targeting.
Last Edit: February 20, 2015, 08:06:24 pm by GTTClan

 
Loading ...