OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ScouseJedi on 09 Sep 2002, 22:37:36
-
1. I have a UH60 (heli1) with a single ai on it (player1) on it. The chopper is flying and player is in cargo
2. I have an officer from a group entitled talk_group (init field of leader has talk_group = group this)
3. When the chopper lands I use a Get Out waypoint and player1 and 2 crew disembark.
4. They then approach talk_group and I
[player1] join talk_group at a syncronous waypoint at which point the 2 crew members should stay where they are and everyone else head off.
Problem - player1 is getting back into the UH60.
Any thoughts?
-
try UnassignVehicle player1
-
Thanks for that....
I suppose that looked like a silly question..... :) but the unassignvehicle command in the command ref really didn't give that much of I clue. I should have tried it - i was looking for unassignascargo...but never mind.
I don't know the form here but Ill take a few seconds to write up this topic incase you want to move it to the snippets section via a cut and paste.
...
Units starting in vehicles in the 'in cargo' state need to be removed from that vehicle.
simply unassign vehicle unitname
If you forget this units will tend to get back into the vehicles they were just in rather than follow waypoints.