One manner of making AI get in or out of a vehicle without waypoints is to use assignAsCargo
statements in combination with orderGetIn
statements. One could add a trigger as a fail safe for those instances where the AI has inadvertently gained control of a squad with players and AI (for example when the player commander has bled out).
Example for units to board a vehicle:
alpha1 assignAsCargo stryker; alpha2 assignAsCargo stryker; alpha3 assignAsCargo stryker; alpha4 assignAsCargo stryker; [alpha1,alpha2,alpha3,alpha4] orderGetIn true;
Example for units to leave a vehicle:
unassignVehicle alpha1; unassignVehicle alpha2; unassignVehicle alpha3; unassignVehicle alpha4; [alpha1,alpha2,alpha3,alpha4] orderGetIn false;
For an arcane reason there is no command orderGetout
. Therefore one needs to use orderGetIn false
Given the rather patchy results with waypoints I tend to manipulate AI to board or disembark with the above methods, which in my experience have given more reliable results.