Jump to content

Vehicle to wait until the server processing is complete


bragadesh
 Share

Recommended Posts

In our model, we have a server and vehicles of different capacities entering the server at different points of time. We wish to make the vehicle wait until all the entities carried by the vehicle are unloaded and then processed by the server. Usually the vehicle leaves after it has unloaded. Is there a way to do this? We initially thought of using an add-on process for this. But we're unaware as to how to know the count of entities inside a vehicle, without having a specific numbered reference like vehicle[1].NumberRiders

Link to comment
Share on other sites

Perhaps in the vehicle's unload add-on process you could have each entity check to see if it is the last entity. If so, perhaps it could Seize that vehicle (which would take effect as soon as the vehicle goes idle). Then as each entity completes the process, it could release any vehicle it has seized (of course only the last entity off would have anything to release). At that point the vehicle would again be idle and available for other work.

Link to comment
Share on other sites

×
×
  • Create New...