Advertisement
Guest User

Untitled

a guest
Dec 8th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. /*
  2. Author: Maximum, Adapté par Sharywan
  3. Description: Placeables for the cop\medic sides.
  4. Disclaimer: Don't be a asshole and pass this off as your own or become a KAI and sell it for profit, Im releasing this for FREE... Credits: Killerty69 for a second pare of eyes when mine got to sleepy
  5. P.S. - Don't be a faggot like i know some of you all will be.
  6. */
  7. disableSerialization;
  8. if (typeOf (life_barrier_activeObj) != "") then {
  9. _currentPos = getPosATL life_barrier_activeObj;
  10. detach life_barrier_activeObj;
  11. life_barrier_activeObj setPos[(getPos life_barrier_activeObj select 0), (getPos life_barrier_activeObj select 1), 0];
  12. life_barrier_activeObj enableSimulationGlobal true;
  13. life_bar_placey pushBack life_barrier_activeObj;
  14. life_barrier_active = false;
  15. life_barrier_activeObj = ObjNull;
  16. };
  17. if (count life_bar_placey >= life_bar_limit) exitWith { hint "Vous avez atteint la limite des objets placables"; };
  18. _display = findDisplay 20000;
  19. _placeables = _display displayCtrl 20001;
  20. _className = lbData[20001, lbCurSel (20001)];
  21. closeDialog 0;
  22. life_barrier_active = true;
  23. _allowMoveDistance = 50;
  24. _object = _className createVehicle (position player);
  25. life_barrier_activeObj = _object;
  26. _attachPos = [0, 3, 0.5];
  27. _object attachTo[player, _attachPos];
  28. _object enableSimulationGlobal false;
  29. _originalPos = position _object;
  30. _playerOriginalPos = position player;
  31. waitUntil{
  32. if (life_barrier_activeObj distance _originalPos > _allowMoveDistance || player distance _playerOriginalPos > _allowMoveDistance) then {
  33. [true] call life_fnc_placeableCancel;
  34. };
  35. sleep 1;
  36. !life_barrier_active;
  37. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement