Posted: Wed Jun 22, 2016 9:25 pm Post subject: Checking terrain height on a set waypoint
I was recently playing around with teleport scripts and got stuck on a script that is supposed to teleport me to a waypoint set on a map. The script works, however the waypoint has only two coordinates which don't include terrain height. This leads to teleporting to correct location, just way too high, which in turn leads to death from falling.
Is there a way to check what is the 3rd waypoint coordinate manually? I already tried dissecting data/structures and found nothing useful.
I guess I could make a script that prevents death from falling but it's a workaround I would prefer to use when everything else fails.
In case it changes anything I'm playing around with Assassin's Creed.
The waypoint may not have a 3rd coordinate associated with it. If the game tells you your distance away from the waypoint, this is easy to check. Get reasonably close to the waypoint and change your own height without moving in the x/y direction. If the distance away from the waypoint changes, it's storing the height somewhere. If it doesn't change, then you'll have to figure something out yourself.
You can try setting the waypoint at different areas of the map and scanning for changed/unchanged values. If you can't find anything that resembles height, remember that there simply may not be a 3rd coordinate. _________________
I don't know where I'm going, but I'll figure it out when I get there.
1. Disable fall damage/death.
2. Teleport under the map and have your character automatically rise really fast, while incorporating a check for surface contact. Once surface contact is true, stop rising.
The first one is a lot easier, obviously.
Alternatively, if you don't want to do any of those, the absolute easiest way would be to just figure out the coordinate values for all of the key areas and just set a hotkey for each. You don't even need a script in this case.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum