Staredit Network

Staredit Network -> UMS Assistance -> Center location
Report, edit, etc...Posted by Dr.Shotgun on 2005-08-05 at 10:30:01
Okay I am majorly confused:
The center location trigger does not work like it should for trigger:
Centerlocation("loc",marine,p1,"loc");
Preserve();
What I though would happen is this:
Since the center location trigger will recneter a location if a unit is in the location but not in the center, i figured it would work as such:
marine moves out of the center of "loc", the trigger fires because the marine is technically still in "loc", it recenters, and it keeps going...
However what really happens is this: the trigger fires perfectly until the marine leaves the place you originally created "loc". How is this possible? Does StarCraft create a "ghost" of every location you make? I need some clarification on this.
Report, edit, etc...Posted by UED77 on 2005-08-05 at 14:27:47
Attached it a test map for this purpose, without hypercheck, because really, that's where the problem lies. As long as the Marine, with each move, only moves a little, and is still inside the Location, it will work. In your action, you only center the Location on the Marine if it's still inside the Location. If he moves out of it too fast, the Location will not move.

If you would like to correct this problem, either go with hypercheck (hyper triggers), or use another, larger Location for the "Destination Location" — the zone your Marine can be in.

UED77
Report, edit, etc...Posted by Vibrator on 2005-08-05 at 14:56:41
Or use center at anywhere? Unless you have more then 1 of that unit for that player, then it wont matter because if they come into contact it will switch anyway.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-08-05 at 22:46:13
Topic Moved

Uhh shotgun, I have no idea what your talking about. A more clear example would help me. Also the center location trigger works perfectly, And it works exaclty how Blizzard programed it to. I don't know how you think it "should' work, your logic is probolly just messed up, you have tested wrong, or your leaving some factor out of the equation.

==Edit==
reread what you wrote, I'm still confused about what your saying is happening wrong though at least I kinda know what your trying to do.

So if it stops working when the unit initially leaves the location, How do you even know if it works in the first place since it never moved. Maybe your centering the location on the wrong unit or something, or the location is too small combined with triggers not fireing very often as UED77 Suggest.
Report, edit, etc...Posted by Dr.Shotgun on 2005-08-06 at 14:32:05
Nevermind, UED explained it. I overlooked the time it takes triggers to fire (w/o hypers).
Next Page (1)