AARRGGHH!!!!! this is so confusing!!! I tried using the script, and I got a helicopter with an Abrams underneath, but it wouldn't parachute in!! dammit!!
It must be something what I'm writing in the Init. fields. For the Chopper, I had:
this setbehaviour "CARELESS"; this flyinheight 50;[this,tank1,chute_1,chute_2,chute_3,chute_4] exec "heli4drop1.sqs"
I use two scripts from Thobson, one to drop the tank:
; script by David Berka (David.Berka@nmi.at)
;Put [this,cargo,chute1,chute2,chute3,chute4] exec "heli4drop.sqs" in the init field of the helicopter
;create a trigger that will set release4_1 = true
_heli = _this select 0
_car = _this select 1
_chute1 = _this select 2
_chute2 = _this select 3
_chute3 = _this select 4
_chute4 = _this select 5
#Update
_heliPos = getPos _heli
_heliPosX = _heliPos select 0
_heliPosY = _heliPos select 1
_heliPosZ = _heliPos select 2
_chute1Pos = getPos _chute1
_chute1PosX = _chute1Pos select 0
_chute1PosY = _chute1Pos select 1
_chute1PosZ = _chute1Pos select 2
_chute1 setPos [_chute1PosX, _chute1PosY, 300]
_chute2Pos = getPos _chute2
_chute2PosX = _chute2Pos select 0
_chute2PosY = _chute2Pos select 1
_chute2PosZ = _chute2Pos select 2
_chute2 setPos [_chute2PosX, _chute2PosY, 300]
_chute3Pos = getPos _chute3
_chute3PosX = _chute3Pos select 0
_chute3PosY = _chute3Pos select 1
_chute3PosZ = _chute3Pos select 2
_chute3 setPos [_chute3PosX, _chute3PosY, 300]
_chute4Pos = getPos _chute4
_chute4PosX = _chute4Pos select 0
_chute4PosY = _chute4Pos select 1
_chute4PosZ = _chute4Pos select 2
_chute4 setPos [_chute4PosX, _chute4PosY, 300]
_car setPos [_heliPosX, _heliPosY, _heliPosZ - 3]
_heading = getDir _heli
_car setDir _heading
~0.01
? (release4_1) : goto "Drop"
goto "Update"
#Drop
_chute1 setDir _heading
_chute2 setDir _heading
_chute3 setDir _heading
_chute4 setDir _heading
~0.01
_carPos = getPos _car
_carPosX = _carPos select 0
_carPosY = _carPos select 1
_carPosZ = _carPos select 2
_chute1 setPos [_carPosX + 1.5, _carPosY - 1.5, _heliPosZ - 18]
_chute2 setPos [_carPosX + 1.5, _carPosY + 1.5, _heliPosZ - 18]
_chute3 setPos [_carPosX - 1.5, _carPosY + 1.5, _heliPosZ - 18]
_chute4 setPos [_carPosX - 1.5, _carPosY - 1.5, _heliPosZ - 18]
#DropUpdate
_chute1Pos = getPos _chute1
_chute1PosX = _chute1Pos select 0
_chute1PosY = _chute1Pos select 1
_chute1PosZ = _chute1Pos select 2
_car setPos [_chute1PosX, _chute1PosY, _chute1PosZ - 3]
_chute2 setPos [_chute1PosX, _chute1PosY + 3, _chute1PosZ]
_chute3 setPos [_chute1PosX - 3, _chute1PosY + 3, _chute1PosZ]
_chute4 setPos [_chute1PosX - 3, _chute1PosY, _chute1PosZ]
~0.01
? (_chute1PosZ > 3) : goto "DropUpdate"
exit
And one for dropping cargo:
; script by Trevor Hobson
;Put [delay] exec "dropcargo.sqs" in the Activate field of a trigger
_delay = _this select 0
releasecargo1_6 = true
~ _delay
releasecargo1_5 = true
~ _delay
releasecargo1_3 = true
~ _delay
releasecargo1_4 = true
~ _delay
releasecargo1_1 = true
~ _delay
releasecargo1_2 = true
exit
Now, someplace in here lies my mistake, but I can't seem to see it. Your thoughts....
Thanks to everyone thus far.....I'm definitely making progress!! ;D