Home   Help Search Login Register  

Author Topic: parachuteing from planes  (Read 1550 times)

0 Members and 1 Guest are viewing this topic.

ThEoNeAnDoNlY

  • Guest
parachuteing from planes
« on: 24 Dec 2004, 17:53:49 »

hello
im making a mission where i have to have a group of people be manually ejected from a plane.

i havnt scripted for  while and most of my knowledge has gone out the window, so could someone please tell me, or just qrite me a script  ;D to eject paratroopers from a plane.

e.g. something like

player one eject
~2
player 2 eject
~2
player 3 eject

u knwo what i mean


Guy

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:parachuteing from planes
« Reply #1 on: 24 Dec 2004, 17:55:00 »
wrote one for penguinman a while back. I'll see if i can find it in the forums...

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:parachuteing from planes
« Reply #2 on: 24 Dec 2004, 17:59:47 »
ahh, here it is:
http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=20984&start=0
nevermind all the stuff after it about errors, i fixed it in the first post  ;)

ThEoNeAnDoNlY

  • Guest
Re:parachuteing from planes
« Reply #3 on: 24 Dec 2004, 18:00:03 »
cheers

i kinda need it soon lol

Guy

ThEoNeAnDoNlY

  • Guest
Re:parachuteing from planes
« Reply #4 on: 24 Dec 2004, 18:00:45 »
ok so what part do i take?

Guy

ThEoNeAnDoNlY

  • Guest
Re:parachuteing from planes
« Reply #5 on: 24 Dec 2004, 18:01:48 »
oh one thing i forgot to mention, i dont want the pilot to eject, im using trenchfeets c47 and the inv44 demo units, i want to eject all the cargo.

Guy

ThEoNeAnDoNlY

  • Guest
Re:parachuteing from planes
« Reply #6 on: 24 Dec 2004, 18:05:39 »
ok it keeps giving me error messages

i just want the c47 to eject all its cargo at about 1 second intervals

Guy

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:parachuteing from planes
« Reply #7 on: 24 Dec 2004, 18:09:15 »
thats what it should do...
what kind of error messages are you getting?
post it please

Offline 456820

  • Contributing Member
  • **
Re:parachuteing from planes
« Reply #8 on: 24 Dec 2004, 18:47:16 »
wouldnt a paradrop one from the editors depot work you can change the intervals aswell i use "mustang60348" one foe choppers and that works fine

ThEoNeAnDoNlY

  • Guest
Re:parachuteing from planes
« Reply #9 on: 24 Dec 2004, 20:18:50 »
ok im still having troubles can someone just write one down

all i wanna do is eject the cargo seats at 1 second intervals, im doing a kind of d-day mission.

Guy

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:parachuteing from planes
« Reply #10 on: 24 Dec 2004, 20:50:54 »
the link i gave has a script that does exactly that, and it has worked for other people

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:parachuteing from planes
« Reply #11 on: 24 Dec 2004, 22:12:32 »
A script I have used is:


; EjectGroup.sqs
; called by [] exec "EjectGroup.sqs"

_group = units <Put_Your_Group_Name_Here>
_count = count _group
_interval = 0.75

_i=0
#loop
_unit= _group select _i
_unit action ["eject",<Put_the_Name_of_your_chopper_here>]
unAssignVehicle _unit

_i=_i+1
if (_i >= _count) then {exit}

~_interval

goto "loop"


Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:parachuteing from planes
« Reply #12 on: 25 Dec 2004, 02:26:03 »
thats almost exactly what I put, except with mine you define the plane and the interval in your aguments, and it ejects all the cargo, not just specified units:
;called: [<planename>,<interval>] exec "ejection.sqs"
;Ejection.sqs

_plane = _this select 0
_delay = _this select 1
;eliminates all possible non-cargo units
_cargo = (crew _plane) - [driver _plane,commander _plane,gunner _plane]
_cargocount = (count _cargo) - 1
_i = -1

#loop
?_i == _cargocount:exit
_i = _i + 1
_man = _cargo select _i
_man action ["eject",_plane]
unassignvehicle _man
~_delay
goto "loop"

Offline THobson

  • OFPEC Patron
  • Former Staff
  • ****
Re:parachuteing from planes
« Reply #13 on: 25 Dec 2004, 10:32:59 »
Looks pretty good to me. I can't see what the problem is.

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:parachuteing from planes
« Reply #14 on: 25 Dec 2004, 10:52:16 »
; ==============================================================

;   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. :o

; =================================================================



ThEoNeAnDoNlY

  • Guest
Re:parachuteing from planes
« Reply #15 on: 31 Dec 2004, 00:15:13 »
ok cheers

guy