Jump to content
Sign in to follow this  
Ellman

(Question) Teleport into a tunnel

Recommended Posts

Hi

 

I've been trying to figure this out for X amount of hours and I can't get it to work for my life.

I've built a tunnel that is 52 meters above the sea level and whenever I attempt to teleport to it it either teleports me above it or below it.

 

Tested teleport scripts:

this addAction ["Enter Elevator", {player setPos [x,y,z]}]

and

this addAction ["Enter Elevator", {player setPos (getPos object)}]


But even though I define the altitude in the first example I can't manage to teleport into the tunnel.

This script works fine but it's a automatic teleport and I want it to be done via an add action:
https://www.armaholic.com/page.php?id=31116

 

Hoping somone here knows more then me and can help 🙂

Share this post


Link to post
Share on other sites

try using setposATL instead. with that command the zero z value is the terrain height

  • Like 2

Share this post


Link to post
Share on other sites

In the editor, place a box in the exact position as that will give you the exact coordinates.  Remove the box.

 

Then as a test, see if you can teleport a box to that position.

.

 

 

 

Share this post


Link to post
Share on other sites

Yeah use what @gc8 suggested. I believe setPos takes its z value from the waves, so it'll be slightly higher/lower each time.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×