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

Gaia Retaliation's Camera System

Status
Not open for further replies.

bethmachine

Banned
Level 8
Joined
Nov 4, 2012
Messages
419
Hey, I need help with a trigger or script that was used for Gaias Retaliation, where the camera positions its height depending on the height of the terrain. Can someone please help me cause it is really needed.
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
You should determine the height of the point ( I mean Z height offset of the location ) then you add your value and it will automatically get further...
To get the point height of the camera target for example just use this
  • ----- As @dimf said above, if your camera is locked to a unit, then it would be easy to detect the target point of a camera by just detecting the locked-unit's position, if not, there are some specific ways to get the camera target for each player, it would be easy also if your map is Single-Player -----
  • Set CameraTarget = ( Camera target point ... = I mean the ways to get camera target point)
  • Custom script: set udg_TerrainHeight = GetLocationZ(udg_CameraTarget)
  • Camera - Set Player 1's Camera Height offset to 'TerrainHeight'
  • Set TerrainHeight = Null
  • Custom script: call RemoveLocation(udg_CameraTarget)
 
Level 14
Joined
Nov 17, 2010
Messages
1,266
I believe in Gaia's Retaliation he just used a periodic trigger to set the camera height and angle. You just need to check if a certain coordinates are in the camera's current field of view and then adjust accordingly. (Though I may be completely off on that)
 
Status
Not open for further replies.
Top