; ==============================================================
; BAIL SCRIPT, the "one-by-one" classic for Operation Flashpoint (OFP)
; ==============================================================
; INSTRUCTIONS: Replace "player" with grpLeader's actual unitName
; (or leave 'player' as is, if player is grpLeader). Replace "Air1" with actual
; name of aircraft or helicopter from which the group is supposed to bail.
_units = units Player
_null = 0
_count = count _units
#Bail
(_units select _null) action ["EJECT", Air1]
unassignvehicle (_units select _null)
_null = _null + 1
~0.600
?_count >_null: goto "Bail"
exit
;===============================================================
; NOTE:
; You can fire this script using the following method :
; Set up a trigger (type=switch) and hit F2 and drag a group-line from
; trigger to plane/chopper. Then edit the radius of the trigger so that
; you ensure that the plane WILL fly into the trigger. This is best done
; by simply setting the radius to some 60 X 500 and then turn the trigger
; so the wide side is facing the direction in which the plane goes, just as
; if the plane would fly into a "wall", so to speak.
; Then, in the trigger's "activation" field you write:
; [Player] exec "BAIL.sqs" (put the script in the mission folder)
; (again: replace "player" with the name of the GrpLeader) And that's all there is to it, m8.
; =================================================================