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

[Trigger] GetLocationZ to Camera Unit Conversion?

Status
Not open for further replies.
Level 9
Joined
Jan 17, 2009
Messages
372
Is there some sort of conversion i have to use for camera height when i use the GetLocationZ function?
Like ((Terrain Camera Height x .8) + User Camera Height) ?
Examples of my problem below.
 

Attachments

  • Screenshot 1.jpg
    Screenshot 1.jpg
    134.7 KB · Views: 101
  • Screenshot 2.jpg
    Screenshot 2.jpg
    92.2 KB · Views: 103
Level 9
Joined
Jan 17, 2009
Messages
372
here is trigger
  • camera
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Camera - Set Player 1 (Red)'s camera Distance to target to 1000.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Angle of attack to 340.00 over 0.00 seconds
      • Camera - Set Player 1 (Red)'s camera Rotation to (Facing of Footman 0000 <gen>) over 0.00 seconds
      • Set temploc = (Position of Footman 0000 <gen>)
      • Custom script: set udg_terrainheight = GetLocationZ(udg_temploc)
      • Camera - Set Player 1 (Red)'s camera Height Offset to (terrainheight + 150.00) over 0.00 seconds
      • Custom script: call RemoveLocation(udg_temploc)
 
Status
Not open for further replies.
Top