Jump to content
Sign in to follow this  
JacobJ

distance to ground

Recommended Posts

Hey

what is the "classname" of the ground in arma 2 OA?

I want a helicopter to unload only if it is within 10 meters above the ground.

I have it all figured out, just not what to put in:

if (heli1 distance "ground" < 10) then

but what do I put insteed of "ground"?

/Jacob

Share this post


Link to post
Share on other sites

I use: (getPosATL heli1) select 2

Works fine, may not be the best solution though...

Share this post


Link to post
Share on other sites

Unload cargo or troops? Because troops getting out of a chopper higher than 1.5m will result in a lot of bruised knees and death.

Share this post


Link to post
Share on other sites

Cargo with troops and without troops, it depends.

Maybe its a newbie question, but what does the command "select 2" means?

Share this post


Link to post
Share on other sites

it refers to the 3rd element in a array

_pos = getpos player 

returns a 3 element aray. x , y ,z

to access a single elemeny you use select,

example

_my_x = _pos select 0
_my_y = _pos select 1
_my_z = _pos select 2

select is used for all kinds of arraysm

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  

×