Help with: Camera bounds

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

Panda-Assassin
Senior Member
Posts: 123
Joined: July 4th, 2009, 12:00 am
Title: Pandaren-Assassin

Help with: Camera bounds

Post by Panda-Assassin »

For my map I want the camera to go to the hero choose tavern. Then when the hero is chosen, the camera should go the where the hero is spawned. But before I show the triggers, I need to get the defintion of:
-Pan camera

Now, here's my trigger that I tried to work myself.
Spoiler:
Camera
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Camera - Set the camera bounds for Player 1 (Red) to HeroSelection <gen>
Camera - Set the camera bounds for Player 2 (Blue) to HeroSelection <gen>
Camera - Set the camera bounds for Player 3 (Teal) to HeroSelection <gen>
Camera - Set the camera bounds for Player 4 (Purple) to HeroSelection <gen>
Camera - Set the camera bounds for Player 5 (Yellow) to HeroSelection <gen>
Camera - Set the camera bounds for Player 6 (Orange) to HeroSelection <gen>
Camera - Set the camera bounds for Player 7 (Green) to HeroSelection <gen>
Camera - Set the camera bounds for Player 8 (Pink) to HeroSelection <gen>
Camera - Set the camera bounds for Player 9 (Gray) to HeroSelection <gen>
Camera - Set the camera bounds for Player 10 (Light Blue) to HeroSelection <gen>
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Camera - Pan camera for Player 1 (Red) to (Center of Jail <gen>) over 0.00 seconds
Else - Actions
That's all I have so far.

Help appreciated, Thank You in advance.
"A unit of time is as precious as a unit of gold, but you cannot don't click me back one unit of time with one unit of gold."

Thanks for all the help Syre!
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Help with: Camera bounds

Post by Syre »

In a message ya sent, you said that you have to move heros from the hill to the middle right? Just do this then. It will also move your camera.

Code: Select all

Untitled Trigger 001
    Events
        Unit - A unit enters FlyInRemoveA <gen>
    Conditions
        ((Triggering unit) is A Hero) Equal to True
    Actions
        Unit - Move (Triggering unit) instantly to (Center of SpawnSouth <gen>)
        Camera - Pan camera for (Owner of (Triggering unit)) to (Center of SpawnSouth <gen>) over 0.00 seconds
FlyInRemove, is the region you have placed over the tavern, i just used that since it was already there. Condition is there so your circle wont go trigger it. And the rest is as you can see.
Panda-Assassin wrote:I need to get the defintion of:
-Pan camera
All it means is it moves the camera for whatever player you choose over the time you choose. In the trigger above, i make the owner of the unit's camera to instantly go over to SpawnSouth, where your hero will be.
Image
Panda-Assassin
Senior Member
Posts: 123
Joined: July 4th, 2009, 12:00 am
Title: Pandaren-Assassin

Re: Help with: Camera bounds

Post by Panda-Assassin »

thank you!!
"A unit of time is as precious as a unit of gold, but you cannot don't click me back one unit of time with one unit of gold."

Thanks for all the help Syre!