Closed bux closed 8 years ago
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.
ACE3 3.4.2 Stable
Mods:
Description:
Steps to reproduce:
Where did the issue occur?
RPT log file: https://gist.github.com/bux578/a91760d1ef6e09c3b345