OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: tuba_player2008 on 12 May 2005, 03:00:25
-
Question from a editor challenged person. I recently learned how to make a unit start in the air whitch made me happy because I could start makeing maps with paratroopers. But the way I learned how to do it just starts them in the air with no parchute and they fall to their death. So my question is how do you start a unit in the air and have him parchute to the ground.
Thanks for any help.
-
You put the chute in the air & put the unit in the chute.
In the init of soldier: soldier moveindriver chute
In the init of chute: this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +100]
-
You don't necessarily need to add :
this setpos [getpos this select 0, getpos this select 1, (getpos this select 2) +100]
unless you just want parachute that starts higher than 50m, I think it is. If 50 meters is good enough for you, just set the parachute's SPECIAL to FLYING. That should do the trick.
Thanks,
ADM
-
Thats true...I forgot to mention that.
-
Hmm, I've also got a question on this topic. Here's what I'd like to do:
+ Have a mission start with a squad of men in a cargo plane. (player=private, not in command)
+ Get the cargo plane to go to a specific location and altitude, and have the men
disembark.
+ Get the cargo plane to exit the map.
+ Have the men link up at a specified location.
How would I go about doing that?
One problem I encounter is having the cargo plane linked to the Officer on the ground (or vice versa), so in the midst of a firefight, you get them ordering each other about. ???
-
Look in Editors Depot at Toadlife's Realistic HALO Script.
Put it into the mission user file.
Play it and watch the chopper that you jumped out of disappear.
Then open up his file and look at what he did.
This should get you very close. ;)
-
Cheers, but I figured it out now! I used the mission template from "Ejecting a Group from a Chinook". I checked out the "Realistic HALO Script" , looks pretty good, I'll try implementing it soon.
Thanks.