• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Guys I have a question ~

Status
Not open for further replies.
Level 19
Joined
Oct 15, 2008
Messages
3,231
By chance, would any of you know how to zoom closer into the map on a certain spot I choose for the different teams (Each team has a different spot which they'll get to see at the beginning of the game, just like how Dark Ages of Warcraft or Azeroth Wars: Legacy Reborn works in the beginning) as well as make the camera zoom back to that spot with the correct angle if the player accidentally scrolls or changes his/her view...? I tried using a camera, but it just made things really bad by zooming in too close on the area that I didn't want it to zoom to even after I set the trigger to follow the camera's view, the camera was right where I wanted it at that point of time... Please help me, thanks...
 
Level 19
Joined
Oct 15, 2008
Messages
3,231
Okays, thanks so much... But do you know how to make it erm, zoom back whenever a player accidentally scrolls? Or set the specific region it would zoom to...?
 
Level 19
Joined
Oct 15, 2008
Messages
3,231
I didn't mean that, what you said was almost right actually, all I need now is to set the area that the zoom would be at. And that scrolling question actually means that if people scroll in-game to try to change their camera view back to normal, it'll automatically zoom back to the distance it had at the start of the game (In your post)...
 
Then, in order to achieve that, when you want the "zoom in" effect to take place, add the Triggering Player in a Player Group. Create a trigger with a periodic event that sets the Angle of Attack and the Distance to Target to the value you want. This way, even if the player accidentally wheels his mouse, the camera will have the effect changed constantly, due to the periodic trigger. To smooth it up, use a low rate event, e.g. 0.08 seconds.
 
Level 19
Joined
Oct 15, 2008
Messages
3,231
Anyways, I think I might know how to solve the first problem, I'll create a separate trigger to make the camera stick its view to a triggering unit at the start of the game... Now for the second problem, how do I keep it like that, meaning zoom back to that same distance (not the position, but only its distance from the ground) just like how they do it in 100 Rounds?
 
I'm sorry, I don't know why doesn't it work. I told you I'll help you. This is the trigger from the map:
  • Trigger
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
      • Player - Player 2 (Blue) skips a cinematic sequence
      • Player - Player 3 (Teal) skips a cinematic sequence
      • Player - Player 4 (Purple) skips a cinematic sequence
      • Player - Player 5 (Yellow) skips a cinematic sequence
      • Player - Player 6 (Orange) skips a cinematic sequence
      • Player - Player 7 (Green) skips a cinematic sequence
      • Player - Player 8 (Pink) skips a cinematic sequence
      • Player - Player 9 (Gray) skips a cinematic sequence
      • Player - Player 10 (Light Blue) skips a cinematic sequence
      • Player - Player 11 (Dark Green) skips a cinematic sequence
      • Player - Player 12 (Brown) skips a cinematic sequence
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering player) is in PlayerGroup) Equal to False
        • Then - Actions
          • Set ZoomDistance = ((Distance to target of the current camera view) - 500.00)
          • Player Group - Add (Triggering player) to PlayerGroup
          • Game - Display to (All players) for 80.00 seconds the text: Hit 'Esc' to stop zooming.
          • Trigger - Turn on Trigger2 <gen>
        • Else - Actions
          • Player Group - Remove (Triggering player) from PlayerGroup
          • Camera - Reset camera for (Triggering player) to standard game-view over 0.00 seconds
  • Trigger2
    • Events
      • Time - Every 0.08 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of players in PlayerGroup) Greater than or equal to 1
        • Then - Actions
          • Player Group - Pick every player in PlayerGroup and do (Actions)
            • Loop - Actions
              • Camera - Set (Picked player)'s camera Distance to target to ZoomDistance over 0.00 seconds
        • Else - Actions
          • Trigger - Turn off (This trigger)
 
Last edited:
Status
Not open for further replies.
Top