Hi, I want to make a map with several units that are controlled by players. I want the player's screen to automatically center on the unit throughout the whole game. How do I do this?
More than likely you'll want to do a loop to do this for each player. If I were doing this I'd create the units in the trigger at certain points, to me that would be easiest.
Note, If you do this "follow a unit group" action, the minimap will not be usable and I'd also recommend using the "lock camera input" under the camera section too, so the player cannot change the viewing angle of your perspective.
One thing. What would the event be for this trigger? Just do it at map start? I did a lot of sc1 modding and there was an always event which I haven't found in sc2. SO the event so something I want to always happen confuses me a bit.
sc1 editor had an always event I don't know what so hard to understand about that.
"Always select units in region one, issue order attack to point 1"
now in sc2 two I have to put
"every 0.00001 seconds select units in region one, issue order attack to point 1"
It sounds like from the above poster you have to program a loop, which is fine.
I see so they do have stuff that is sorta like an always event. Does the same job. The event "timer every 0.0001" but it just seems so... whats the word... duct tape approach.
and yeah my English is pretty terrible, I don't blame you : )
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, I want to make a map with several units that are controlled by players. I want the player's screen to automatically center on the unit throughout the whole game. How do I do this?
@Maxwell55555: Go
Convert the unit wished to a unit group, then do an action for the camera to "follow a unit group" or do it all in one trigger:
More than likely you'll want to do a loop to do this for each player. If I were doing this I'd create the units in the trigger at certain points, to me that would be easiest.
Note, If you do this "follow a unit group" action, the minimap will not be usable and I'd also recommend using the "lock camera input" under the camera section too, so the player cannot change the viewing angle of your perspective.
One thing. What would the event be for this trigger? Just do it at map start? I did a lot of sc1 modding and there was an always event which I haven't found in sc2. SO the event so something I want to always happen confuses me a bit.
@trentonx: Go
... what?
You could use the Map Initialization event and just run a loop that never ends in actions.
@Blixster: Go
sc1 editor had an always event I don't know what so hard to understand about that. "Always select units in region one, issue order attack to point 1" now in sc2 two I have to put "every 0.00001 seconds select units in region one, issue order attack to point 1"
It sounds like from the above poster you have to program a loop, which is fine.
@trentonx: Go
Your event would be "Every time 'Any Unit' enters 'Region 1': and action would be "Issue order (triggering unit) to attack (point 1)"
Your English was iffy so I wasn't sure what you were talking about.
@Blixster: Go
yay thanks
I see so they do have stuff that is sorta like an always event. Does the same job. The event "timer every 0.0001" but it just seems so... whats the word... duct tape approach.
and yeah my English is pretty terrible, I don't blame you : )