Home   Help Search Login Register  

Author Topic: parachuting  (Read 594 times)

0 Members and 1 Guest are viewing this topic.

Oster

  • Guest
parachuting
« on: 15 Jan 2003, 19:57:51 »
I want to know how to add a parachute.. like they did in blackop halo..
when you send it back you can send it to my email: per_yster@hotmail.com
/per

Diepvriezer

  • Guest
Re:parachuting
« Reply #1 on: 15 Jan 2003, 20:27:08 »
First make 2 units.
The first one is a man, it can be all kind of man ;)
Make his name: DUDE
And put in his init field:

this setBehaviour "SAFE"; [this, 1000]exec "HALOsettings.sqs"; this addAction ["Open Chute", "HALOchute.sqs"]

Ok, then make the 2nd unit.
Make it a chopper where you can board in cargo. So when you have a west soldier make a blackhawk, and when you have an east soldier make a mi17 or mi27 or whatever you likes :P

Make the name of the chopper:  CHOPPER

Now put it somewhere else on the map (not at your HALO unit), and put him on "Flying" and in his init field typ:

this flyInHeight 100

Ok, you are ready in the editor now.
Save it, and get back to windows.
Then go to your users/yourname/missions map and open the map with the name you save the HALO map as.

Then make a new text document, open it, and then save as:
Make sure it`s on "All Files"
Then make his name:   HALOsettings.sqs

And save it

Make another file at the same way and make his name: HALOchute.sqs
Again, make sure you have it on "All Files"

Ok, then open the HALOsettings.sqs

And put this in it:


; HALOscript

_unit = _this select 0
_height = this select 1

_unit setpos [GetPos _unit select 0, GetPos _unit select 1, _height]

exit




Ok, save and exit
Then open the HALOchute.sqs and put the following in it:


; HALOscript

DUDE SetBehaviour "AWARE"
CHOPPER SetPos GetPos DUDE

DUDE moveincargo CHOPPER
DUDE action ["EJECT", CHOPPER]

unassignvehicle DUDE
CHOPPER setpos [500, 500, 0]
DUDE RemoveAction 0

exit





Ok, save and exit, open OFP. and open you mission. Now you start in the air with your gun on your back if the script is correct  8)

If you want your chute to open, just press the action: Open Chute

And there you go ;)

If you want your player to start lower/higher, just change the    1000     in the init field of the unit...


Next time, look at the editors depot, because I posted the script from:   Schism    right here ;), only it`s a little bit edited (sorry Schism :P)