There are actually 2 bugs here:
- Simply add this EH:
addMissionEventHandler ["EntityCreated", { params ["_obj"]; systemChat format ["added %1 %2", getObjectID (_obj), typeof _obj]; }];
Then using Zeus, simply move the unit into a vehicle, then move him out (or order him to get out). The EH will trigger. It also triggers if you delete the vehicle while the unit is inside.
- Every time you delete a unit on foot, the EntityCreated EH also registers a logic object immediately in the next frame for some reason (might not be a bug tho)