Staredit Network

Staredit Network -> UMS Assistance -> Centering Location help.
Report, edit, etc...Posted by JordanN_3335 on 2006-08-03 at 09:02:18
So the help I need is that if a unit gets control of another unit with the centered location does the location sttill stay on that unit or do you need to create a seperate location like.


[Players]
Player-6

[Conditions]
Always

[actions]
Center location "Marine specials" on unit "marine"
Preserve Trigger
------------------------------------------------------------
[Players:]
Just Player-1?

[conditions]
Player-1 brings exactly 1 unit to "First hero"
Player-6 brings exactly 1 marine to "Hero giver"

[Actions]
Give 1 marine at "hero giver" to Player-1
Remove 1 beacon at "First hero" for current player
Report, edit, etc...Posted by dumbducky on 2006-08-03 at 09:22:40
If you have the all players in the move location, then no. If you only have it for p1, then yes. Remember though, having multiple marines will center on a different marine each time the trigger is done. That's how diplo's work.
Report, edit, etc...Posted by IsaT on 2006-08-03 at 09:23:25
As long as you dont move the location after the unit changes/dies/moves, the location will stay at the same place.
Report, edit, etc...Posted by MoonlighTurtle on 2006-08-03 at 20:21:23
QUOTE
[Players]
Player-6

[Conditions]
Always

[actions]
Center location "Marine specials" on unit "marine"
Preserve Trigger


With the condition being always, then yes, the location will be moved.

If there are more than several marines and you are giving the marine in the location to another player, then the location will center on another marine.

If there is no marine for the location to center on, then it will center in the middle of the parent location specified in the center location action.
Report, edit, etc...Posted by JuiceBug on 2006-08-04 at 13:43:55
It will center on the leftmost uppermost marine...
Report, edit, etc...Posted by Zeratul_101 on 2006-08-04 at 14:19:54
QUOTE(JuiceBug @ Aug 4 2006, 11:43 AM)
It will center on the leftmost uppermost marine...
[right][snapback]539395[/snapback][/right]


leftmost lowermost...

starcraft refers to unit first by their X-axis(left to right). when two units share the same x-value, their y-values(bottom to top) are then checked and compared. lower values are detected first.

note: i don't know if this is how starcraft technically works, but in most cases, thats how it practically works. the only situation this would be false in is when the units were placed in SCMD2(maybe SF too). in which case, units are detected by their unit placement number instead of location. lower numbers are detected first i think.
Next Page (1)