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.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Roy