@ Davies1
no... basicly da
foreach command just make da command work 4 every1 in an array (units group player gives da array of da units in player group...)
im dont think BAS r workin on ArmA (dont take my word tho... i dont follow addons 2 much
) but i can give u some basic fast roping script... as 4 da onmapclick... i think deres some of em around... nd nywayz it shudnt b 2 hard 2 script
and u cud alwayz try 2 convert BAS scripts from OFP 2 ArmA
@ JimiScott
basicly it makes senese... now theres 2 ways 2 do it... da simple ugly 1... and da more complicated good looking 1
lets start w/ simple
u need 2 create a triger and have it activated by whatever u wanna activate (so wen da condition is met it will have da units eject)
now in da on activation field u need da next code
{_x action ["EJECT",LCDFly]} foreach crew LCDFly (assuming da choper is still called LCDFLY of course
)
da beter lookin way wud b 2 create a script... u will realy need 2 learn how 2 use those 2 create good misions
basicly create a txt file and name it (for example it doesnt matter da name realy.. whate important is da .SQF extention) LCDEject.SQF... open da file w/ code editor and put inside it
private ["_choper",_delay","_count","crew"];
_choper = _this select 0;
_delay = _this select 1;
_crew = crew _choper;
_count = count crew;
for [{_i = 0},{_i < count},{_i = _i + 1}] do
{
(_crew select _i) action ["EJECT",_choper];
sleep _delay;
};
if (true) exitwith{};
now in da triger dat shud activate da ejecting... u put
nil = [LCDFly,1] execVM "LCDEject.SQF"
now da 1st parameter is da name of da choper (u can use da same code 4 difrent chopers @ da same time
)
da 2nd parameter is da delay between each units bailing so in my case each unit will wait 1 second b4 ejecting
LCD OUT