HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

exact height

03-26-2005, 06:08 AM#1
TheGreatCheese
i have some raised terrain scattered around a map and i have no idea how to find the height it, so i can change the camera height to that...so i just want to be able to pick any point on the map and find the height of it. Help would be much appreciated and rep would be rewarded! :god_help_us:
03-26-2005, 08:44 AM#2
Guest
I'm not used to this new trigger, but maybe create a unit at a point, get the Z of the unit with the new trigger, and remove the unit
03-26-2005, 10:47 AM#3
Anitarf
You don't need a unit, the new GetLocationZ() function returns the height value of a point.
03-26-2005, 11:19 AM#4
Guest
I don't know this new trigger much, I only used it once as "get Z of (position of unit)" to make a camera follow uphills, and I was too lazy to open WE :/
03-26-2005, 11:21 AM#5
iNfraNe
make 2 variables: tempPoint and tempReal
set tempPoint = position of unit (or something u want, doesnt matter)
custom script: set udg_tempReal = GetLocationZ(udg_tempPoint)
custom script: RemoveLocation(udg_tempPoint)
do actions here, tempReal = the terrain height.
03-27-2005, 03:58 AM#6
Raptor--
Quote:
Originally Posted by BadFurDay
I don't know this new trigger much, I only used it once as "get Z of (position of unit)" to make a camera follow uphills, and I was too lazy to open WE :/

well, u don't need to know much to figure out all there is to it, i mean from the call statement you already know it takes a single point as a parameter, and u know what it does... thats about all there is to know seeing as how theres no operator overloading in jass
03-28-2005, 01:26 AM#7
TheGreatCheese
Quote:
Originally Posted by toot
make 2 variables: tempPoint and tempReal
set tempPoint = position of unit (or something u want, doesnt matter)
custom script: set udg_tempReal = GetLocationZ(udg_tempPoint)
custom script: RemoveLocation(udg_tempPoint)
do actions here, tempReal = the terrain height.
thanx for the help