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

fps camera height

Status
Not open for further replies.
Level 4
Joined
Jun 26, 2010
Messages
73
ok, i have this fps map based in a forest, no blizzard cliffs, and right now, the terrain is flat.
it's flat because idk how to calculate the height of the terrain and adjust the height of the camera to it. small prob thts getting in the way because if this, my forst is flat, and i'll probably have to move the map terrain back to in the city. which sux, because flat places make me sad.

now, if i could solve this delima, i would be infinitely happier, even if the map never makes it to the hive. i've tried to use the advanced first person camera tutorial, but i dont want my angle of attack to change with the terrain and i have tried to replicate it in gui, but it's not working.
 
The same thing, but a bit more understandable.
  • Actions
    • -------- Sets a point variable as the current camera's point, later it will be removed to kill leaks --------
    • Set TempPoint = (Target of current camera view)
    • -------- Sets 'Height', a Real variable, as the location's Z(or the location's terrain height) --------
    • Custom script: set udg_Height - GetLocationZ(udg_TempPoint)
    • -------- Kills leaks --------
    • Custom script: call RemoveLocation (udg_TempPoint)
 
Level 4
Joined
Jun 26, 2010
Messages
73
pebkac

so far, i've got the idea that you have to set the camera heightoffset to =
((height + targetzofcurrentcam) - heightoffsetofcurrentcam)
not working so i tried
((height + heightoffsetofcurrentcam) - targetzofcurrentcam)
not working
 
Status
Not open for further replies.
Top