OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: LtRobertCole on 08 Feb 2008, 06:14:55

Title: Load a BlackHawk
Post by: LtRobertCole on 08 Feb 2008, 06:14:55
Im creating a mission and i want to get 2 squads to load up into a black hawk take off land and unload somewhere els on the map but I cant find out how to exactly do it. Any suggestions? 
Title: Re: Load a BlackHawk
Post by: bedges on 08 Feb 2008, 08:39:10
welcome to OFPEC!

as you can imagine this sort of question has been asked and answered many many times before. take a look in the editors depot (top of the page) for tutorials on the subject, or search the forum for similar threads. you may also want to have a look at this thread (http://www.ofpec.com/forum/index.php?topic=29479.0) which will give a bit more information on how to get what you need from the site.

once again welcome  :good:
Title: Re: Load a BlackHawk
Post by: LtRobertCole on 08 Feb 2008, 23:53:38
Thank you. Yes I have searched for it but I didn't know what to exactly search for I tired load and unload and load black hawk or load helicopter but I could never find what I was looking for. I tried the editors depot but for some reason all the links just reload the page.
Title: Re: Load a BlackHawk
Post by: Denz on 09 Feb 2008, 03:20:12
You can't just use waypoints for this.

Try something like this:

Code: [Select]
{_x assignascargo blackhawk} foreach (units squad1)
{_x assignascargo blackhawk} foreach (units squad2)

(units squad1) ordergetin true
(units squad2) ordergetin true

edit: forgot my manners
Welcome to OFPEC!
Title: Re: Load a BlackHawk
Post by: LtRobertCole on 09 Feb 2008, 09:13:58
Where would I type this in at? Sorry I am new at this whole scripting thing. I found a way to use black hawks its not the way i was thinking of but it works. I just use an empty one and give my men a waypoint to get in and get out at a different area and it seems to work.
Title: Re: Load a BlackHawk
Post by: snozzdog on 27 Jun 2008, 00:46:54
Put a blackhawk on the map, then a squad nearby, set a "LOAD" waypoint from the blackhawk to next to the blackhawk, then a "GET IN" waypoint for the troops nearby, then using 'SYNCRONIZE' at the top link the two waypoints together. that'll make the soldiers get into the Blackhawk.


Then set a simple move waypoint around the map to where you want to blackhawk to stop, then place a "UNLOAD TRANSPORT" waypoint where you want it to land, this will make the soldiers get out.

Anymore move waypoints after than will direct the helicopter elsewhere. If you want to move the people once they have got out set a "MOVE" waypoint for them back from the "GET IN" one.

This will make the men get in to heli, the heli fly them to the insertion place, drop the men off then fly away while the men carry on.

To get more units into the heli just syncronize them also to the heli when it first pics up people, you can also just get the heli to go back and pic more people up.

Hope it helps, my grammer may be slightly bad, so email me if you want more detailed help at snowdog.ash@hotmail.com


Thanks, Ash
Title: Re: Load a BlackHawk
Post by: Gcfungus on 27 Jun 2008, 08:41:47
Check out this tutorial (http://www.3dactionplanet.com/flashpoint/Tutorial3/Tutorial%203.html), it's exactly what you want but for one squad. Also, remember that if the total of the 2 squads is more than 12 (the max for the helicopter) then people will be left out. If you find this a problem, a Chinook will hold 24 easily.