_skupina = Group Spawn
_pos = Position Spawn
;==============================================================================
air00 = "RKTAFSandy" CreateVehicle GetPos ReSpawn
air01 = "RKTAFSandy" CreateVehicle GetPos ReSpawn

air00 SetPos [(GetPos air00 Select 0),(GetPos air00 Select 1),(GetPos air00 Select 2)+50]
_rychlost = 300 / 3.6
air00 SetDir 75
_dir = GetDir air00
air00 SetVelocity [(Sin (_dir)) * _rychlost,(Cos (_dir)) * _rychlost, 0]

air01 SetPos [(GetPos air01 Select 0)+15,(GetPos air01 Select 1)-30,(GetPos air01 Select 2)+50]
_rychlost = 300 / 3.6
air01 SetDir 75
_dir = GetDir air01
air01 SetVelocity [(Sin (_dir)) * _rychlost,(Cos (_dir)) * _rychlost, 0]

"SoldierWPilot" CreateUnit [_pos,_skupina, "PilotAir00=this"]
"SoldierWPilot" CreateUnit [_pos,_skupina, "PilotAir01=this"]

[PilotAir00] Join GrpNull
[PilotAir01] Join Group PilotAir00

PilotAir00 AssignAsDriver air00
PilotAir00 MoveInDriver air00
PilotAir01 AssignAsDriver air01
PilotAir01 MoveInDriver air01
;==============================================================================
; TU NASTAV POCIATOCNÚ POZICIU KAM MAJÚ LETIET...
;==============================================================================
PilotAir00 DoMove GetPos let
PilotAir01 DoMove GetPos let
@UnitReady PilotAir00
~30
PilotAir00 DoMove GetPos odlet
PilotAir01 DoMove GetPos odlet
~3
Air SetFuel 0
Air00 SetFuel 0
~5
DeleteVehicle Air
DeleteVehicle Air00
DeleteVehicle PilotAir00
DeleteVehicle PilotAir01
DeleteVehicle Air01


Exit