OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: rgbman on 01 Feb 2003, 23:05:24

Title: helo's pausing at waypoint after cargo ejects
Post by: rgbman on 01 Feb 2003, 23:05:24
When a group of soldiers eject from a helo, the helo is pausing at the waypoint where the soldiers bailed out and not advancing to the final, landing waypoint.  Anyone know why this is happening?

I'm using a modified parachute.sqs script:

; Original OFP parachute script modified by Rick on Jan-30-03

_helo = _This Select 0
_group = _This Select 1


"unassignvehicle _x" foreach units _group

_aunits = units _group
_i = 0
_j = count _aunits

#Here
?(_aunits select _i)!=player : (_aunits select _i) action ["EJECT",_helo]
_i=_i+1
~0.5
?_j>_i:goto "Here"

exit
Title: Re:helo's pausing at waypoint after cargo ejects
Post by: Black_Feather on 02 Feb 2003, 00:18:54
dunno  :-\  just try like this the heli could be hanging around waiting for the units, have you synchronised any of the waypoints for the heli btw?


; Original OFP parachute script modified by Rick on Jan-30-03

_helo = _This Select 0
_group = _This Select 1

_aunits = units _group
_i = 0
_j = count _aunits

#Here
?(_aunits select _i)!=player : (_aunits select _i) action ["EJECT",_helo]
_i=_i+1
~0.5
?_j>_i:goto "Here"

"unassignvehicle _x" foreach units _group

exit
Title: Re:helo's pausing at waypoint after cargo ejects
Post by: rgbman on 02 Feb 2003, 02:02:32
That fixed the problem, thank you!

For the record, I do sync the troops to the heli at the get-in/load waypoint.

Was the group remaining assigned as cargo because they hadn't ejected yet?

It's strange because the original parachute.sqs script i used came from the Chinook mission in OFP:CWC, but in that case the player is piloting the helo, not AI.  Oops.

Thanks again for the help.  I was beginning to wonder :)