HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

terrain height?

06-18-2005, 03:57 PM#1
Guest
in our campaign, its fpv. (frist person view) but the terrain isnt flat. is there a trigger function or jass script for the current terrain height? so i can move the camera heigt to x plus terrain height every y seconds?
06-18-2005, 04:39 PM#2
Tim.
Environmeant - Terrain Cliff Height

That might work, but I dont think so. Depends how you made the terrain.
06-18-2005, 04:50 PM#3
divine_peon
hmm, i've been hearing alot about that custom script z offset thing but i don't know how to use it.

anyway, FPS mod has an old method of checking terrain height, be sure to check it out.
06-18-2005, 05:19 PM#4
Ant
First, wherever the camera is over, use GetLocationZ() to find the terrian height of that point (for info on how to use, just search. Guranteed answers).

Then under set camera field, set camera's height offset to (some equation). I THINK it might be more complicated then just setting the height offset to the value you get from GetLocationZ() because I believe the camera height is determined by the camera target and you're trying to adjust based on the source of the camera but I might be wrong.
06-18-2005, 05:23 PM#5
divine_peon
oh haha, GetLocationZ() yes, not z offset. aghh i forget things so easily.
06-19-2005, 03:12 PM#6
iNfraNe
I made a map explaining how to do this: http://195.241.126.94/index.php?page=maps.php?id=37

if you dont want the Angle of Attack, you could just leave out that part and set it to 350 or something.