bejiitas_wrath

Delete player body after disconnect.

Jan 17th, 2021
909
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. handleDisconnect = {
  2.         _unit = _this select 0;
  3.         _containers = nearestObjects[_unit,["WeaponHolderSimulated"],8];
  4.         {
  5.             deleteVehicle _x;
  6.         } foreach _containers;
  7.         deleteVehicle _unit;
  8. };
  9.  
  10. addMissionEventHandler ["HandleDisconnect",{
  11.     _this call handleDisconnect;
  12.     false
  13. }];
RAW Paste Data