OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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?
-
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
-
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?
-
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
-
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?
-
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
-
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.
-
Did you synchronise the waypoints together?
Planck
-
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!
-
An insubordinate pilot methinks.
Try moving the AI group slightly closer to the chopper.
Planck
-
I'm just gonna provide a link to an image - This works for me everytime
http://www.ofp.nu/Grafik/large/Ai-LZ.jpg
-
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