• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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: 97
  • Screenshot 2.jpg
    Screenshot 2.jpg
    92.2 KB · Views: 98
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