Home   Help Search Login Register  

Author Topic: [SOLVED] BIS build-in parachute script  (Read 1786 times)

0 Members and 1 Guest are viewing this topic.

Offline Binary

  • Members
  • *
[SOLVED] BIS build-in parachute script
« 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 ??
« Last Edit: 20 Jan 2010, 21:18:30 by Binary »
"Ah.. Home sweet hell !" - Al Bundy

Offline DeanosBeano

  • Addons Depot Staff
  • *****
  • SirDeanosbeano bstowed on me by sui ;)
    • Fraghaus
Re: BIS build-in parachute script
« Reply #1 on: 20 Jan 2010, 19:23:07 »
 they have a para.sqs  yes.
Code: [Select]
; 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
I love ofp

Offline Binary

  • Members
  • *
Re: BIS build-in parachute script
« Reply #2 on: 20 Jan 2010, 20:44:45 »
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
Code: [Select]
; 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
« Last Edit: 20 Jan 2010, 21:18:11 by Binary »
"Ah.. Home sweet hell !" - Al Bundy