Home   Help Search Login Register  

Author Topic: How to eject a unit without opening the parachute?  (Read 972 times)

0 Members and 1 Guest are viewing this topic.

kevind2003

  • Guest
How to eject a unit without opening the parachute?
« on: 28 Mar 2003, 03:19:06 »
Hi,

Anyone can teach me what's the command to do that? The halo scripts are too difficult for me to understand  :-\

Uberminch

  • Guest
Re:How to eject a unit without opening the parachute?
« Reply #1 on: 28 Mar 2003, 20:46:06 »
Too difficult? Now, I am pretty good at avoiding scripts, but your problem, I'm afraid, demands a script, and nothing else. The HALO scripts can't be that hard. I've never used them, but you don't need to write the script yourself. Just follow their instructions.  ;)

Agent Fire

  • Guest
Re:How to eject a unit without opening the parachute?
« Reply #2 on: 29 Mar 2003, 15:21:27 »
I REALLY want the halo thing, and I downloaded it and followed the instructions, but I still can't get it to work...  :(

Offline OFPWiZard

  • Members
  • *
Re:How to eject a unit without opening the parachute?
« Reply #3 on: 29 Mar 2003, 18:30:22 »
Hello

*I HOPE I CAN EXPLAIN THIS WELL

HALO JUMP

Heres what to do:

Scripts
description.ext
Quote
respawn = "instant"
respawndelay = 15
};

ejct.sqs
Quote
~2
_group = _this select 0
leader _group say "eng20"
_delay = 0.4

;main part of script (edit at own risk)
_count = count units _group
_num = _count - 1


#eject
_time = 0
_unit = units _group select _num
unassignvehicle _unit
[_unit] ordergetin false
_unit action ["eject", vehicle _unit]
?_num == 0:goto "exit"
_num = _num - 1
&_delay
goto "eject"


#exit
helo1 flyinheight 100
helo1 move [0,0,0]
@unitready helo1
deletevehicle helo1
exit

init.sqs
Quote
_units = ["w1","w2","w3","w4","w5","w6","w7","w8","w9"]

{[_x,150,30,500] exec {real_halo.xsqs}} foreach _units

hint format["Hello %1! I hope this will help you, OFPWiZard.]
exit

Automatically
Open a new mission (Ex: Desert Island)
Save as HALO JUMP
Press Alt + Esc to close OFP (Brings to taskbar)
Drag all the scrips (description.ext, eject.sqs, and init.sqs) into the folder called HALO JUMP.Intro
this will be in:
C:\Program Files\Codemasters\OperationFlashpoint\Users\Name\missions\HALO JUMP.Intro
Open Flashpoint again by clicking it on the Taskbar
Make a chopper (UH60)
Name is helo1
In the Chopper's Initialization Field:  this flyInHeight 500;  this setPos [getPos this select 0, getPos this select 1, 500]
Make waypoint for helo1 type Move, speed Normal, and put a long way from the chopper so it will go and you can eject yourself and your men, or have it automatically like how i am going to say right now.
Make a group (9 People)
Name them w1 - w9
In the Officer's (Leader's) Initialization Field:  "_x moveInCargo helo1" foreach units group this; west1 = group this
Make two triggers
        Trigger One
Axis A 150 and Axis B 600
Type Rectangle
Activation West - Present
On Activation: leader west1 say "eng13; [west1] exec "eject.sqs"
Put the trigger on the line of the waypoint where ever you want the group to eject.
   
Manually
       Trigger Two
Type Repeatedly
Activation Radio Alpha - Countdown (0,0,0)
Title Eject Group
On Activation [west1] exec "eject.sqs"
Use this to eject manually by press 0,0,1 in game to eject the group by yourself.

Hope this works, bye  ;)

HuNtA

  • Guest
Re:How to eject a unit without opening the parachute?
« Reply #4 on: 30 Mar 2003, 11:19:42 »
Although this normally seems strange:

planewithnomenin setPos getPos planewithmenin; deleteVehicle planewithmenin; planewithnomenin setVelocity [0,50,-8]

that will make a new plane where the old one was, delete the old plane (and therefore make everyone eject(without parachutes)) and will make the new plane go flying down

(RES ONLY)

Agent Fire

  • Guest
Re:How to eject a unit without opening the parachute?
« Reply #5 on: 30 Mar 2003, 15:40:55 »
Thanks OFP Wizard I'm almost there, but when I try it, I get an error saying

‘|#|{[_x,150,30,500] exec {real_halo.xsqs]] foreach _units': Error invalid number in expression

In white text in the top left hand corner of the screen (this is with manually telling them to eject - I couldn't get them to automatically do it). Then, if I press 001, it says "gogogo" etc., but they are doing normal parachuting. Any suggestions?  :-\

Offline OFPWiZard

  • Members
  • *
Re:How to eject a unit without opening the parachute?
« Reply #6 on: 30 Mar 2003, 21:16:58 »
Agent Fire could i send you what i made in an email?

Because i explained it as well as i can, i also did it over (making the mission) and it should work out if you put and do everything as i said.

Agent Fire

  • Guest
Re:How to eject a unit without opening the parachute?
« Reply #7 on: 31 Mar 2003, 21:04:50 »
ok. If it's small enough can u send it to "bullfrog_173@hotmail.com"?

Offline OFPWiZard

  • Members
  • *
Re:How to eject a unit without opening the parachute?
« Reply #8 on: 31 Mar 2003, 22:52:59 »
I sent the email

Agent Fire

  • Guest
Re:How to eject a unit without opening the parachute?
« Reply #9 on: 01 Apr 2003, 17:15:55 »
Thanks - email recieved. I'll se what I can do.  :toocool: