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

Noob camera question

Status
Not open for further replies.
Level 5
Joined
Jun 28, 2008
Messages
127
Just wondering how to zoom the camera out? I want all the players to be zoomed out slightly, because the standard view is too close in.

Cheers
 
Level 11
Joined
Feb 14, 2009
Messages
884
You only need a simple trigger for this:

  • Zoom Out
    • Events
      • Player - Player 1 (Red) types a chat message containing -out as An exact match
      • ---Loop for players 1-12, or change it to Map Initialization---
    • Conditions
    • Actions
      • Camera - Set (Triggering Player)'s camera Height Offset to <your height> over 0.00 seconds
 
Level 2
Joined
Dec 23, 2006
Messages
13
I recommend Distance to target. It will adjust to the minimap camera accordingly.
If you use Height offset, it will seem like it is zoomed out, but the minimap camera will be thrown off.

Also, note that it isn't locked so users will reset the game camera if they scroll the mouse wheel (or press Pg Up/Dn). This will effectively lock the camera:

  • Zoom
    • Events
      • Time - Every 0.00 seconds of game time
    • Conditions
      • (Integer((Distance to target of the current camera view))) Less than or equal to <Your Height>
    • Actions
      • Camera - Set Player 1 (Red)'s camera Distance to target to <Your Height> over 0.00 seconds
      • ---Loop for players 1-12, but an array would be easier!---
The condition trigger can be accessed through 'Integer Comparison' and then 'Conversion - Real to Integer', followed by 'Camera - Current Field of Camera'. Hope that helps.
 
Status
Not open for further replies.
Top