Advertisement
6komodo6

Paradrop player and AI and respawn their backpack (from reddit)

Mar 7th, 2024 (edited)
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. null = [] spawn {
  2. {
  3. if(((assignedVehicleRole _x)select 0) =="Cargo") then {
  4. removeBackpack _x;
  5. _x addBackpack "B_Parachute";
  6. if ((_unit isNotEqualto (driver (vehicle _unit))) || (_unit isNotEqualto (gunner (vehicle _unit))) || (_unit isNotEqualto (commander (vehicle _unit)))) then { if (local _unit) then { if (_unit isNotEqualto (driver _vehicle)) then { unassignVehicle _unit; }; _unit action ["Eject", _vehicle];
  7.  
  8. if (isPlayer _unit) then
  9. {
  10. [] spawn
  11. {
  12. sleep 1;
  13. player action ["OpenParachute", player];
  14. hint "I'm a player";
  15. };
  16. };
  17. };
  18. unassignvehicle _x;
  19. moveout _x;
  20. sleep 0.2;
  21. };
  22. } forEach(crew heli);
  23. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement