Jump to content
Sign in to follow this  
KTM_Calle

Getting altitude from sea-level?

Recommended Posts

Would it be possible to get a script that detects a vehicles altitude? Like when i get down to +1 m above sea, the script could activate? smile_o.gif

Share this post


Link to post
Share on other sites
Would it be possible to get a script that detects a vehicles altitude? Like when i get down to +1 m above sea, the script could activate?  smile_o.gif

?(getPos yourVehicle select 2)<=1

Would do I think.

Share this post


Link to post
Share on other sites
Would it be possible to get a script that detects a vehicles altitude? Like when i get down to +1 m above sea, the script could activate?  smile_o.gif

?(getPos yourVehicle select 2)<=1

Would do I think.

That would do to get the height over the ground that's just underneath his feet.

If you want it to give true over sea level, I believe you can place a logic on the ocean and then use sin/cos/tan calculations to get the height. I think I asked a similar question and denoir gave me a script, but I can't find it. sad_o.gif

Share this post


Link to post
Share on other sites
That would do to get the height over the ground that's just underneath his feet.

Yes ofcourse, I forgot that tounge_o.gif

Good luck finding the script

Share this post


Link to post
Share on other sites

a="EmptyDetector" camcreate [0,0,0]

a setpos [getpos player select 0, getpos player select 1, 0];

_ASL = a distance player

hint format ["%1", _ASL]

Share this post


Link to post
Share on other sites
Gnat @ Feb. 01 2004,13:54)]Height

There it is smile_o.gif

...where did I get sin/cos/tan from rock.gif

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  

×