Staredit Network > Forums > SC2 Assistance > Topic: One-way zone
One-way zone
Oct 1 2010, 3:02 am
By: payne  

Oct 1 2010, 3:02 am payne Post #1

:payne:

Is there a way to make a zone passable only one-way?
I'm creating a race map and the point is to reach the 4 checkpoints, in order, to get +1 lap (nothing too fancy there :P). The thing is, the way my triggers are currently set, players can just run to Checkpoint #4 and come back to #1 to gain 1 lap...
I'd like it so players cannot go back once they have reached a Checkpoint. It must not a real-physical barricade since it'd prevent other players from passing through it to access to the Checkpoint.



None.

Oct 1 2010, 4:22 am brutetal Post #2



I'd probably do a check by giving the unit a custom value of the previous check point they passed and make sure they can't pass the same one or the one before that and only the one ahead of it.
You can use variables as well. It can do just the same.

Basic pesuedocode:
If unit passes first check point and the value is equal to the check point before, change value to 1.
If unit passes second check point and the value is equal to the check point before, which is 1, change the value to 2.
... etc.
But in check point 4, add 1 lap to the triggering player's overall amount of completed laps.

When the unit tries to go back after it changes value to the last check point it past, just move the unit instantly back on the track to a point offset the center of the last check point.



None.

Oct 1 2010, 6:34 pm payne Post #3

:payne:

I didn't put this in Triggers Assistance because I was searching for a way to literally place an object that would only let players pass one-way through it. :P



None.

Oct 1 2010, 10:49 pm brutetal Post #4



Yeah, so far I haven't been able to accomplish that as well with the data editor. But it works with triggers. =/
But probably tinkering with behaviors, effects and the arc. Its what I tired to use to make it work.



None.

Oct 2 2010, 1:40 am payne Post #5

:payne:

Quote from brutetal
Yeah, so far I haven't been able to accomplish that as well with the data editor. But it works with triggers. =/
But probably tinkering with behaviors, effects and the arc. Its what I tired to use to make it work.
I'm 100% sure I'm not good enough with those to be able to obtain such an effect. :><:



None.

Oct 26 2010, 8:54 pm Tempz Post #6



Terrain wise you can have ramps and jumps, other things that makes it impossible to get around check point... it all depends on your map layout so far.

Another way would be to make it so that when you go to another section of track you enter a new section of map much how caves and world map share different maps.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
[2024-4-11. : 4:18 pm]
IlyaSnopchenko -- still better than "Pakistani hookers in Sharjah" that I've seen advertised in another forum
[2024-4-11. : 4:07 pm]
Ultraviolet -- These guys are hella persistent
[2024-4-11. : 3:29 pm]
Vrael -- You know, the outdoors is overrated. Got any indoor gym and fitness equipment?
[2024-4-10. : 8:11 am]
Sylph-Of-Space -- Hello!
Please log in to shout.


Members Online: Roy, jun3hong