• 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.

[General] How to deal with the cmera height?

Status
Not open for further replies.
Level 7
Joined
Oct 19, 2015
Messages
286
You can also have a periodic trigger constantly reset the camera to the higher position, but this will completely disable the option of zooming in by scrolling.
 
Level 18
Joined
May 11, 2012
Messages
2,108
The camera in my map is custom, it's higher than the default, and when I scroll with the mouse then the camera becomes default. How can I control this?

As Anitarf suggested, set default camera distance and then use periodic trigger that will set camera distance to your default height for each player.
You will still be able to move the camera up down as you scroll with mouse. And for zooming part, you will have to make an array variables and dedicated trigger that will register triggering player that wrote some kind of command to change the zoom, as I have.
 
  • Camera
    • Events
      • Time - Every 0.07 seconds of game time
    • Conditions
    • Actions
      • Set temploc = (Position of unit)
      • Camera - Set Player 1 (Red)'s camera Rotation to (90.00 + ViewAngle) over 0.50 seconds
      • Camera - Set Player 1 (Red)'s camera Distance to target to 1270.00 over 0.50 seconds
      • Camera - Pan camera for Player 1 (Red) to temploc over 0.00 seconds
      • Custom script: call RemoveLocation(udg_temploc)
I use this rather than lock camera because lock camera looks too ridged and disables minimap click-moving. I've noticed no lag, but with an 8 player map it might get slightly more burdensome.
 
Status
Not open for further replies.
Top