JacobJ 10 Posted September 29, 2010 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
zapat 52 Posted September 29, 2010 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
neokika 61 Posted September 29, 2010 if ((getPos _chopper select 2) < 10) then { ...code... }; _neo_ Share this post Link to post Share on other sites
kylania 546 Posted September 29, 2010 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
JacobJ 10 Posted September 30, 2010 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
nuxil 2 Posted September 30, 2010 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