OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Binary on 20 Jan 2010, 18:27:03
-
I may remember wrong.. But don't ArmA 1/2 include a build-in script (like camera.sqs), for parachuting units out of a plane/chopper ?
I seem to remember doing this once, and it worked very well.
There is a lot of scripts for this, for OFP, but they all seem to work.. Well eh.. "Strange".. With parachutes descending wrongly, empty parachutes getting stuck and similar issues.
Anyone remember ??
-
they have a para.sqs yes.
; Parachute
; start as: [para_leader, para_vehicle] exec "para.sqs"
_who = group (_this select 0)
_veh = _this select 1
_aunits = units _who
_i = 0
_j = count _aunits
#Loop
(_aunits select _i) action ["EJECT",_veh]
unassignvehicle (_aunits select _i)
_i=_i+1
~1
?_j>_i:goto "Loop"
{unassignvehicle _x} forEach _aunits
_veh flyInHeight 50
it would be [para_leader, para_vehicle] exec "\Ca\Data\scripts\para.sqs" ;
never tried it but its there
-
Nice - will try that :)
Actually, just before checking this thread again, i found the ArmA 1 mission i thought i was using the script in..
Turns out i wasn't :D
I was using this:
Paradrop.sqs
; AIRBONE PARADROP SCRIPT
; Modified From Rapple.sqs by: Mustang60348
; Modified by: the[]coyote
;
; This script calls two parameters: the name of the group to paradrop
; and the name of the helicopter to paradrop from. Syntax is:
;
; [groupname, heliname] exec "Paradrop.sqs"
;
; In order to use the script, place a trigger where you want to paradrop to start from.
; In the Actvation field type: [groupname, heliname] exec "Paradrop.sqs"
; Once the trigger is activated, the helicopter will drop one paratrooper per second until
; all units in the group are in the skies. Personally, I make the helo stay at limited
; speed and no less than 100 height for safety of the paratroops.
_Group = _this select 0
_Vehicle = _this select 1
_listunits = units _Group
_A = 0
_B = count _listunits
#KEEPSENDING
_listunits select _A action ["EJECT", _vehicle]
Unassignvehicle (_listunits select _A)
_A=_A+1
~1
?_B >_A:goto "KEEPSENDING"
~1
MoveNext = TRUE
Will test both scripts and post the results :)
Maybe someone can use it for reference
Update:
Couldn't get the BIS para.sqs to work, simply wouldn't fire..
The paradrop.sqs above, worked really well. There is one issue though, as soon as a parachute hits the ground, it keeps going down, and spawning again 1 meter above. This goes away after 1-2 minutes though