THANX FOR YOUR REPLY ACF ;D
and thanx for trying to help me. Unfortunately your code is not working.
I tried to mod it but noooo.... error...error...
took a good look at the comref again, but ... me so stupid
I dont want to use the movein-command because it will automatically throw the dead unit out from the vehicle. moveto-command just moves it to the backseat. that looks better.. mkay
THE PROBLEM IS, that when, or if the pilot / gunner is hit when vehicle doesnt have cargo inside, the script will naturally exit. because nothing is keeping the script waiting until the vehicle has cargo.
And after that, when the vehicle is loading, the gunners seat wont be manned.
HERE IS THE SCRIPT THAT WORKS ONLY WHEN VEHICLE HAS CARGO:
_heli = _this select 0
_pilot = driver _heli
_gunner = gunner _heli
_crew = [_pilot, _gunner]
_cargo = (Crew _heli) - [_pilot, _gunner]
_aunits = _cargo
_j = (count _aunits)
_i = 0
@!(ALIVE _pilot)
#pilotdead
~5.0
_gunner action ["movetodriver", _heli]
~0.02
_heli sideChat "gunner: PILOT IS HIT..!! TAKING CONTROLS... OVER. "
~0.02
_gunner assignasdriver _heli
;checkcargoloop should be here
#pilotdead
~3.0
(_aunits select Random _j) GroupChat "CHECK IF THE PILOT IS STLL ALIVE, AND GIVE HIM FIRST AID..!! "
~3.0
(_aunits select Random _j) GroupChat "WE NEED A GUNNER OVER HERE..!! "
~1.0
(_aunits select _i) GroupChat "ROGER, MOVING TO GUNNERS SEAT"
~2.0
(_aunits select _i) action ["movetogunner", _heli]
(_aunits select _i) assignasgunner _heli
~1.0
(_aunits select Random _j) GroupChat "THE PILOT IS A MESS... HEÂ'S WAYSTED.. "
exit
#cargocheck
hint "cargocheckloopforreplacement"
?_cargo >= 1: goto "pilotdead" <---- HERE IS THE PROBLEM!!
~1.0
goto "cargocheck"
OK EVERYBODY. SO I STILL NEED YOUR HELP WITH THIS ONE.
AND PLESE DONT TELL ME TO CHECK OUT TUTES... TRUST ME, I AM CHECKING.... me so stupid...
:tomato: :cheers: :help: