Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Author: Maximum, Adapté par Sharywan
- Description: Placeables for the cop\medic sides.
- 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
- P.S. - Don't be a faggot like i know some of you all will be.
- */
- disableSerialization;
-
- if (typeOf (life_barrier_activeObj) != "") then {
- _currentPos = getPosATL life_barrier_activeObj;
- detach life_barrier_activeObj;
- life_barrier_activeObj setPos[(getPos life_barrier_activeObj select 0), (getPos life_barrier_activeObj select 1), 0];
- life_barrier_activeObj enableSimulationGlobal true;
- life_bar_placey pushBack life_barrier_activeObj;
- life_barrier_active = false;
- life_barrier_activeObj = ObjNull;
- };
-
- if (count life_bar_placey >= life_bar_limit) exitWith { hint "Vous avez atteint la limite des objets placables"; };
- _display = findDisplay 20000;
- _placeables = _display displayCtrl 20001;
- _className = lbData[20001, lbCurSel (20001)];
- closeDialog 0;
- life_barrier_active = true;
- _allowMoveDistance = 50;
- _object = _className createVehicle (position player);
- life_barrier_activeObj = _object;
- _attachPos = [0, 3, 0.5];
- _object attachTo[player, _attachPos];
- _object enableSimulationGlobal false;
- _originalPos = position _object;
- _playerOriginalPos = position player;
-
- waitUntil{
- if (life_barrier_activeObj distance _originalPos > _allowMoveDistance || player distance _playerOriginalPos > _allowMoveDistance) then {
- [true] call life_fnc_placeableCancel;
- };
- sleep 1;
- !life_barrier_active;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement