OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: snafu on 08 Mar 2009, 19:33:24
-
Hi all,
I have a helicopter on a landing pad (it has a group already in it) and once the player enters it the helicopter will then take off and land somewhere and all the units in it will get out.
Problem is that the helicopter always takes off and never waits for the player. I have this in the condition of the first waypoint.
s1 == heli1
What's wrong? ???
-
s1 in heli1Your check would be if the player will get the heli, but he can't get the heli ;)
-
Assuming the first waypoint is attached to the helicopter: the helicopter takes off and hovers above the waypoint, right?
One solution is to add "this flyInHeight 0" to the chopper's init field and "heli1 flyInHeight 150" to the first waypoint's activation field.
-
That doesn't work either.
I am using the Hellenic Huey's. Since they don't come with co-pilots for the co-pilot seat I have a pilot grouped to the Huey with npc1 moveInCargo heli1 in the co-pilots init field. In addition there are a small group of soldiers with the lead called group1, and in his init field {_x moveInCargo Heli1} forEach Units group1.
Once the Huey has the player on board it will move to a WP beside Corazol, it has s1 in heli1 in its Condition field (and a time of 5 seconds before it 'activates', the next waypoint is a transport unload one at an invisible H at Obregan. Then the Huey has a getout WP at Corazol Airport.
:dunno:
EDIT
Assuming the first waypoint is attached to the helicopter: the helicopter takes off and hovers above the waypoint, right?
One solution is to add "this flyInHeight 0" to the chopper's init field and "heli1 flyInHeight 150" to the first waypoint's activation field.
What do you mean by attached? The WP is the Hueys.
The second part just makes the Huey start its engine and not move.
-
Like in the mission below. The helicopters first waypoint is attached to the helicopter. I've omitted waypoints for the player (like GetIn, GetOut) and did not use Transport Unload (because it won't work (http://community.bistudio.com/wiki/ArmA:_Mission_Editor#Select_Type) here)