UGX-Mods

Call of Duty 5: World at War => Help Desk => Mapping => Topic started by: SilentR9 on October 04, 2018, 12:21:22 am

Title: Bi Directional Debris
Post by: SilentR9 on October 04, 2018, 12:21:22 am
Hi everyone quick question.

in my map i have a debris blocked that i would like to be bought from both ways to activate either zone from whatever side you buy from .
 this works but my problem is if the zone your trying to enter is already activated it wont let me buy the debris.
i could just not add a  zone activate to the trigger but my map has two main ways to go around like kino der toten

if anybody has any ideas please let me know

Thanks
-Kyle


Title: Re: Bi Directional Debris
Post by: johndoe on October 04, 2018, 05:30:12 am
]https://www.ugx-mods.com/forum/mapping/12/weird-zone-problem/2466/ (http://[object Object)
Title: Re: Bi Directional Debris
Post by: DeletedUser on October 06, 2018, 06:17:09 am
Hi everyone quick question.

in my map i have a debris blocked that i would like to be bought from both ways to activate either zone from whatever side you buy from .
 this works but my problem is if the zone your trying to enter is already activated it wont let me buy the debris.
i could just not add a  zone activate to the trigger but my map has two main ways to go around like kino der toten

if anybody has any ideas please let me know

Thanks
-Kyle
I'm not sure if this will help you, but to activate 1 zone or another that are adjacent it only needs 1 script_flag and only 1 line in your mapname.gsc for example:

Code Snippet
Plaintext
add_adjacent_zone( "start_zone", "zone1", "enter_zone1" );
 is the same as adding this.
Code Snippet
Plaintext
add_adjacent_zone( "zone1", "start_zone", "enter_start_zone" );
Basically "start_zone" or whatever zone the player is in should already be activated, so when the player buys the debris from whatever side it will active the other side's zone.
So you only need to add 1 trigger and just drag it over so you can access it from both sides, and add 1 script_flag to that trigger, and only add 1 line to your zones in the .gsc
I hope this helps you out!