Jump to content
Sign in to follow this  
thetrooper

Script a TransportUnload

Recommended Posts

I had a look in the Comrefs etc and can't seem to find a script for a simple transport unload? Basically something like veh1 transpUnload, or Cargo unload. Something like that. Any ideas?

Just want to boot all cargo or individual from it's hold without using waypoints?

Share this post


Link to post
Share on other sites

I'll have a look at that in a min. I found a leaveVehicle command. It works for my AI, just not for the player as well.

Share this post


Link to post
Share on other sites

The "unassign"-thing should work for your AI

To force your player out of the vehicle i think

player action["eject", name of vehicle];

should work

Share this post


Link to post
Share on other sites
I'll have a look at that in a min. I found a leaveVehicle command. It works for my AI, just not for the player as well.

From what i've experienced :

  • "LeaveVehicle" is a command aiming at the original crew of a vehicle (driver, gunner etc. even if it may work with troops in cargo too), so that they stop using their vehicle (ie don't want to use it anymore, even if they have to move again).
  • "UnassignVehicle" is more aimed at troops in cargo, so that they get out of the vehicle, even if it somehow works with the original crew too (ie driver, gunners). BUT an "unassigned" original crew will embark again if they have to move.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×