Currently the ViV system lacks events for loading/unloading which would be useful for scripted systems, eg. https://github.com/acemod/ACE3/pull/7984
I think expanding the system with events would greatly improve it's usability for modders.
Proposal:
Events added to transport vehicle:
_vehicle addEventHandler ["CargoLoaded", { params ["_vehicle", "_cargo"]; }]; _vehicle addEventHandler ["CargoUnloaded", { params ["_vehicle", "_cargo"]; }]; // or as an alternative _vehicle addEventHandler ["CargoState", { params ["_vehicle", "_cargo", "_state"]; }];
Events added to vehicles/objects that are being transported:
_vehicle addEventHandler ["LoadedIntoCargo", { params ["_vehicle", "_transport"]; }]; _vehicle addEventHandler ["UnloadedFromCargo", { params ["_vehicle", "_transport"]; }]; // or as an alternative _vehicle addEventHandler ["TransportState", { params ["_vehicle", "_transport", "_state"]; }];