OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: seanver on 17 Oct 2002, 22:44:50
-
[attachment deleted by admin]
-
heh - i know your problem...
if the driver is a 'moveindriver' driver, then transport unload doesnt work... go figure.
just name all the men you have onboard and give the higgins a move waypoint to where u want him to umload - in the onactivation field of that waypoint type:
[man1, man2, man3, man4 ....] ordergetin false
that should sort it
:thumbsup:
-
or make a trigger at the beach of where u want to dock the boat, put a short delay on the min,med,max (3-5?) just so the boat isn't coasting too fast before they unload. Make the trigger detected by the side your boat crews on or by the boat itself. In the trigger unassign your players then tell them to eject or getout.. the script for that would be:
UnassignVehicle player1
player1 action ["eject",theboat]
~1
UnassignVehicle player2
player2 action ["eject",theboat]
~1
UnassignVehicle player3
player3 action ["eject",theboat]
~1
and so on.. change the ~1 to what ever u want and the names of the boat\players.. you dont have to use a script just do this but I dont know how to space them out other than making a trigger for every player..
UnassignVehicle player1; player1 action ["eject",theboat]
:cheers:
-
Thank you, you have given me an idea. To avoid having to write too much (I have five boats with 60 soldiers) I have put in the UNLOAD TRAnSPORT waypoint of each boat this:
"_x leavevehicle b1" foreach (crew b1)
And works fine.