Staredit Network

Staredit Network -> UMS Assistance -> Center viewing unit wherever it moves..
Report, edit, etc...Posted by VicoChoi on 2006-08-07 at 23:32:07
Can someone tell me how do I make the trigger to keep center viewing a unit wherever it moves to. The one in the tutorial didn't work for me.
Report, edit, etc...Posted by Zell.Dincht on 2006-08-07 at 23:46:37
Its called center view. You put always as conditions, then put center view at location.
Report, edit, etc...Posted by Zeratul_101 on 2006-08-08 at 03:04:34
QUOTE(Zell.Dincht @ Aug 7 2006, 09:46 PM)
Its called center view. You put always as conditions, then put center view at location.
[right][snapback]542022[/snapback][/right]


err, not exactly. he said when it moves, so it'd work a little differently.



bring 0 unit to 1x1

move '1x1'
center screen on '1x1'
Report, edit, etc...Posted by Xx.Doom.xX on 2006-08-08 at 08:12:10
QUOTE(Zeratul_101 @ Aug 8 2006, 03:04 AM)
err, not exactly.  he said when it moves, so it'd work a little differently.
bring 0 unit to 1x1

move '1x1'
center screen on '1x1'
[right][snapback]542072[/snapback][/right]


Zeratul is right, but just to make it more clear. You can use this. It also has another method too.

Making Locations Follow Units
Report, edit, etc...Posted by DT_Battlekruser on 2006-08-09 at 22:02:26
The difference between Zeratul's method is that the location will only re-center (and the view, if it's in the same trigger) if the unit moves, so you can pan around the map if the unit is moving. The tutorial would be centering view continuously, so you could not look away from your unit.
Report, edit, etc...Posted by iPLUGGED on 2006-08-11 at 19:00:48
Why must you guys make it so technical? What you do is create a 1X1 location. Center the location on the unit that you want to center view on. So the alternative method is...

C:Always.

A:Move (1X1 location) on (unit to follow) owned by (whoever owns it).
Preserve trigger.


C:Always or Player bring exactly 0 (units) to (center location) (or whatever the circumstances are)

A:Center view for current player at (1x1 location)
Preserve trigger.


Note: Yes, there are two parts to it. Zell Dincht, you are very wrong. Yes we know its called center viewing, thats what he asked help for..
Report, edit, etc...Posted by fritfrat(U) on 2006-08-11 at 19:09:51
Zell is not wrong whatsoever.. he interpreted Vico as questioning how to constantly center view on a unit, not just when it is moved. I also believe this is what Vico meant. It would just be this:

Always: Center location 1x1, Center View location 1x1.

And for the other method, where you can pan the map when you are still, you can put both actions in 1 trigger like Zeratul did. Plugged's is kind of a waste of a trigger.
Report, edit, etc...Posted by Zeratul_101 on 2006-08-11 at 19:59:36
iplug, theres no reason to divide it into two triggers. when two triggers have the same conditions and no other triggers inbetween them, you put them together.
Report, edit, etc...Posted by Falkoner on 2006-08-11 at 20:07:19
Also, Iplug, instead of always, you may want to put "if p? commands one (unit), or if p? brings excactly 0 (unit) to location, because if you say always, once the unit dies the location will be moved to a seemingly random place
Report, edit, etc...Posted by Zeratul_101 on 2006-08-11 at 21:03:21
QUOTE(Falkoner @ Aug 11 2006, 06:06 PM)
Also, Iplug, instead of always, you may want to put "if p? commands one (unit), or if p? brings excactly 0 (unit) to location, because if you say always, once the unit dies the location will be moved to a seemingly random place
[right][snapback]543599[/snapback][/right]


not random, center of the map.
Report, edit, etc...Posted by fritfrat(U) on 2006-08-11 at 21:30:22
Center of the parent location, more accurately. Center of the map if you use anywhere.

Unless you make anywhere not the size of the whole map.. blink.gif
Report, edit, etc...Posted by Zeratul_101 on 2006-08-11 at 22:39:46
yep fritfrat is right - my bad blushing.gif . the only time that i know of that anywhere wouldn't be the size of the map is when you resize the map using starforge fyi.
Report, edit, etc...Posted by Shocko on 2006-08-12 at 00:29:44
why does the location have to be 1x1 tongue.gif why not smaller happy.gif
Report, edit, etc...Posted by fritfrat(U) on 2006-08-12 at 11:11:36
It has to be 1x1 because 1x1 is an awesome size and you should recognize that.

A smaller location would work too tongue.gif
Report, edit, etc...Posted by PCFredZ on 2006-08-12 at 12:26:37
QUOTE(Zeratul_101 @ Aug 11 2006, 09:02 PM)
not random, center of the map.
[right][snapback]543622[/snapback][/right]

Center of the other location parameter, which most people leave as "Anywhere".

QUOTE(Shocko @ Aug 12 2006, 12:29 AM)
why does the location have to be 1x1 tongue.gif why not smaller happy.gif
[right][snapback]543705[/snapback][/right]

Size is irrelevant because the center of the location will be used for the Center View action.
Report, edit, etc...Posted by Shocko on 2006-08-12 at 12:49:51
QUOTE(PCFredZ @ Aug 12 2006, 08:26 AM)
Size is irrelevant because the center of the location will be used for the Center View action.
[right][snapback]543847[/snapback][/right]


do you think i dont know that??... it was a joke...
Next Page (1)