OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: schurem on 11 Jan 2003, 19:36:59

Title: newbie question: helicopter boardings driving me mad
Post by: schurem on 11 Jan 2003, 19:36:59
Hello Sirs,

I'm having quite a problem getting helicopters to behave like i want them to. I did like the tutorials say, but the helicopter never does as advertized.
here's a little list of things i tried, and behaviours i got:

1) assignascargo for the player, linked load and get in waypoints, chopper got land order in activation field of waypoint:
helicopter hovers over lz, never lands.
2) same as above, but without the synchronizing:
helicopters dusts off the lz for a second, then merrily flies off
3) same as 1, but with one guy in squad (lower rank):
helicopter hovers, until i order the guy to get in, helicopter lands, waits for men to board and flies off
4) same as 3, but with player as subordinate:
leader orders men in, helo waits for all to board and flies off.

good, now, when there's a squad, the damn chopper is fine, but when i'm alone, the darn thing just won't comply  ::) HELP!  ???

p.s. using resistance ver1.90
Title: Re:newbie question: helicopter boardings driving me mad
Post by: Dinger on 11 Jan 2003, 23:01:19
Heh.  Welcome to the dark world of helo ops.  Anyone who claims they've got it all licked is lying.  Whenever possible, I advise you to cheat.
By the way: if you've got a "load" waypoint, wqith "land" in activation, it's not going to work.
It will only land after it completes the conditions for the WP, viz., loads troops.

Try a "Move" WP with myhelo land "GET IN" followed by a "LOAD" wp on the same spot.
That _might_ work.


----
Dinger
NP2 Helo Mission now up at:
http://www.filefront.com/?filepath=/theofpfaq/addons/OFPR_Mission_Shortstraight.zip
Title: Re:newbie question: helicopter boardings driving me mad
Post by: Sui on 12 Jan 2003, 04:36:56
Firstly, I suggest you check the Tutorials (http://www.ofpec.com/editors/browse.php?browsewhat=0) section, as I think there is a helicopter tutorial in there...

With your specific problem, I suggest you use Dinger's method, with a few changes.

Have a MOVE waypoint with this in the OnActivation Field:

"_x assignascargo heli" foreach units group; heli LAND "GET IN"; (unit group) ordergetin true

Where heli is the name of your helicopter, and group is the name of your group. (Defined by group = group this in the leader's init field).

Good luck ;)
Title: Re:newbie question: helicopter boardings driving me mad
Post by: schurem on 14 Jan 2003, 20:57:56
thank you Sir, that did it  :D