Fuel nozzle remains when removing vehicle
ACE3 3.4.2 Stable
Mods:
- @CBA_A3
- @ace
- @tfar
- @bwa3
- @sobmod
- @bw_isaf
Description:
- When deleting both the refueling vehicle and the vehicle that is getting refueled as zeus, the fuel nozzle remains on the ground and doesn't get removed.


Steps to reproduce:
- Be Zeus
- Spawn a e.g. HEMTT Fuel and a second vehicle
- Edit the second vehicle and empty the fuel tank
- Connect the second vehicle using the HEMTT's fuel nozzle
- Start the refueling process
- Delete both vehicles
Where did the issue occur?
- Multiplayer
RPT log file: https://gist.github.com/bux578/a91760d1ef6e09c3b345
Tagging @GitHawk
I can use the PFH players get while carrying the nozzle, but there are still loop holes.
If the player interacting with the fuel truck disconnects, no one else is running that PFH. So the Zeus can delete the vehicle and the nozzle will remain.
Anyone having a better idea? I'd love to have a pre-delete event, in which I could call fnc_reset on the fuel truck.
If the player interacting with the fuel truck disconnects
On the server:
addMissionEventHandler ["HandleDisconnect", {
params ["_disconnectedPlayer"];
// If the player was refuelling, cleanup
}];
Of course you'd need to set some public variables on the refuelling unit indicating to the server what should be cleanedup.
Various ACE modules do exactly this, like captives, dragging, etc
Anyone having a better idea? I'd love to have a pre-delete event,
Nah, I don't think we can do that reliably.