I'm trying to design a trigger that only unloads the chosen unit from cargo while leaving the rest of the occupants inside, but all I can seem to find for unloading is 'unload all'. Can anybody point me in the right direction please?
I don't think this is possible as the unload ability is multiphase (i.e. first you would need to target the unit, then you would need to target the unload point.) Unfortunately there is no way of issuing multiphase orders via triggers. This is the same problem as ordering a unit to drop a specific item in its inventory, and the same workaround applies: create a new copy of the unit outside the transport and kill the one in the transport.
Nah, they won't move out when in the bunker unfortunately. I currently have that built into the trigger already for after the unit exits. The move trigger activates if I manually exit the bunker, but will not activate while inside it.
This is very important for me as I have multiple players units in a neutral bunker and I wish to disable the cargo interface so they can't see or eject each other when they are inside, but can still eject a single unit.
That's a good idea. I could cache the unit and remove it then load it back in outside the bunker.
The way I was thinking the trigger feature would work though, is by triggering a click on the cargo interface for the appropriate slot which is determined by the find cargo position. I am of course also assuming you could still trigger a click on a UI which is hidden.
I mean, If I can click something in the basic game you would think there would be a way to trigger that click also.
Thanks for the replies.
EDIT: There is also a command under the Bunker load/unload ability called UnloadUnit, along with Load, UnloadAll, UnloadAt and Loadall and is it possible to string or reference the command linked to a unit (variable)?
EDIT2: Also, it does not have to be multi-phase exactly, as you could click the target point yourself. Or make a later action do that part for you. In fact I don't even require a target point to exit to, just exit next to it like when you click the unit or unload all.
I didn't know you could cancel an order. I'll have to try that.
Want you can do is remove the orders that are qued for the unit. You might not beable to do this before the unit is unload. Thats why I also say you should tell the Unit that was unloaded to be loaded again just incase the unit is unloaded. Should all happen so fast that you prolly wont notice.
Rollback Post to RevisionRollBack
KageNinpo = SN
DialogLeaderboard & TeamSort