OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: john_clark on 25 May 2005, 18:36:51

Title: Helicopter spin up
Post by: john_clark on 25 May 2005, 18:36:51
Does anyone know how to make a helicopter spin up, so it is ready to take off, but not lift off until the soldiers are on board?
Title: Re:Helicopter spin up
Post by: 456820 on 25 May 2005, 19:27:02
spin up? oh wait i understand now yes i do atleast i think i do

1. Create the chopper and put this in its init field or waypoint wichever needed
2. make a trigger
diameter 0, 0
condition = None
Activated = once
condition = unit_name IN chopper_name and unit_name2 IN chopper_name. (and so on until all men you want in the chopper are in the condition field)
on activation = chopper_name flyinheight 50

that basically makes it fly at 0metres until all men ae in it then allows it to take off and continu with its journey

NOTE - They may be an easier way to do this
Title: Re:Helicopter spin up
Post by: john_clark on 25 May 2005, 21:24:14
It works fine for the group that I am in, but not for a group (boarding the chopper), that is composed entirely of ai units.  Any suggestions?
Title: Re:Helicopter spin up
Post by: Grendel on 25 May 2005, 21:38:37
you could try using an action command similar to engineon or something like that, look in the sticky topic at the top and see if there is an action posted already, as the action command syntax can be tricky (for me at least  ;))...and if the loons still try to take off you could always run a setpos loop to keep them in place untill you want them to take off...

-Grendel
Title: Re:Helicopter spin up
Post by: john_clark on 25 May 2005, 21:57:14
Could the problem be that I am trying to use more than one chopper at the same time?

How would I make a setpos loop?
Title: Re:Helicopter spin up
Post by: Planck on 25 May 2005, 22:05:53
It's been a while since I played with choppers.

But, trying to remember......

Give the chopper a 'load' waypoint at its start position....

Give the AI group a 'get in' waypoint at the chopper.

Synchronise the two waypoints together.

I think that is right.......give it a try


Planck
Title: Re:Helicopter spin up
Post by: john_clark on 25 May 2005, 22:10:26
Yeah, I tried that,but the helicopter takes off first, then flies around... and then it lands.  This isn't quite what I want.  I want it to be ready to fly, but still on the ground, where it starts the mission.
Title: Re:Helicopter spin up
Post by: Planck on 25 May 2005, 22:14:01
Did you synchronise the waypoints together?


Planck
Title: Re:Helicopter spin up
Post by: john_clark on 25 May 2005, 22:19:10
Yes, I did.  The first helicopter I did works fine, even with the group all being ai.  The second waits until the group is almost close enough to get in then takes off without them!
Title: Re:Helicopter spin up
Post by: Planck on 25 May 2005, 22:21:17
An insubordinate pilot methinks.

Try moving the AI group slightly closer to the chopper.


Planck
Title: Re:Helicopter spin up
Post by: Speeder on 25 May 2005, 23:07:21
I'm just gonna provide a link to an image - This works for me everytime

http://www.ofp.nu/Grafik/large/Ai-LZ.jpg
Title: Re:Helicopter spin up
Post by: john_clark on 26 May 2005, 14:27:44
I think I have fixed it.  I put an invisible H under all the choppers, and it seems to work fine now.  Thanks for all your help. :D