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

In-Game Camera

Status
Not open for further replies.
Level 10
Joined
Nov 5, 2008
Messages
536
Is it possible to change the game camera in the editor? So when playing the map, all doodads, units and terrain are smaller. Everything is zoomed out.

I have tried the other way around, simply making all units smaller, but that messes up their walk and attack animations.

Suggestions?
 
Level 4
Joined
Nov 10, 2007
Messages
56
I have this system in my map, player has to enter massage

  • Increase Distance
    • Events
      • Player - Player 1 (Red) types a chat message containing + as An exact match
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Distance to target to ((Distance to target of the current camera view) + 100.00) over 0.50 seconds
Or you can do it like this
  • Increase Distance
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Camera - Set (Picked player)'s camera Distance to target to ((Distance to target of (Current camera)) + 100.00) over 0.00 seconds)
This doesn't stop players from reverting to normal camera. All they have to do is zoom with mouse roller and this camera is lost but it can be fixed if you need.
 
Level 10
Joined
Nov 5, 2008
Messages
536
Thanks for your answers!
I made the second trigger you showed:

Player Group - Pick every player in (All players) and do (Camera - Set (Picked player)'s camera Distance to target to (Distance to target of (Current camera)) over 0.00 seconds)

But in which field do I add the +100?

In the third field, where I have added "To ((Distance to target of ((Current camera))" But there is no field to enter the +100, if I select value and type 100 the trigger looks like this:

Player Group - Pick every player in (All players) and do (Camera - Set (Picked player)'s camera Distance to target to 100.00 over 0.00 seconds)



I'm rather new at triggering you see.. : /

Hope you can help me out with this last thing cause that would really be great!
 
Level 4
Joined
Nov 10, 2007
Messages
56
Player Group - Pick every player in (All players) and do (Camera - Set (Picked player)'s camera Distance to target to value - click value and in this window choose arithmetic, you will see this: 1.00 + 1.00
instead of first 1.00 chose Camera - Camera Field Of Current Camera and instead of second 1.00 enter 100 in Value field. Try 150 or 200, see which you like more.
 
Level 4
Joined
Nov 10, 2007
Messages
56
I tough you might ask that so I just created that trigger, two actually and you will need one variable.

Create a variable and name it cam or nozoom or whatever and in variable type choose Camera Object. Now add this to first trigger:

  • Increase Distance
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players) and do (Camera - Set (Picked player)'s camera Distance to target to ((Distance to target of the current camera view) + 100.00) over 0.00 seconds)
      • Set cam = (Current camera)
then make a second trigger like this:

  • No Zoom
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
      • (Angle of attack of the current camera view) Not equal to (Angle of attack of cam)
      • (Distance to target of the current camera view) Not equal to (Distance to target of cam)
    • Actions
      • Camera - Set Player 1 (Red)'s camera Distance to target to (Distance to target of cam) over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to (Angle of attack of cam) over 0.00 seconds
Conditions might give you hard time. They are Real Comparison and then search for Camera - Camera Field Of Current Camera.
 
Status
Not open for further replies.
Top