Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- waituntil {!isnil "bis_fnc_init"};
- waitUntil { time > 0 };
- _obj = _this select 0;
- Veh_Array = [];
- sleep (random 5);
- pad1 = "Land_HelipadEmpty_F" createVehicle [0,0,0];
- pad2 = "Land_HelipadEmpty_F" createVehicle [0,0,0];
- pad1 disableCollisionWith _obj;
- pad2 disableCollisionWith _obj;
- pad1 attachTo [_obj, [-6.65,-5.75,0] ];
- pad2 attachTo [_obj, [1.3,-5.75,0] ];
- "Sign_Arrow_Blue_F" createVehicle (getPos pad1);
- "Sign_Arrow_Blue_F" createVehicle (getPos pad2);
- /* Coordinates relative to Garage doors
- // OUT
- [0,-2.3,0] SMALL
- [0,-4,0] MID
- [0,-5.5,0] BIG
- // IN
- [0,2,0] SMALL
- [0,4,0] MID
- [0,4,0] BIG
- */
- _null = [Player] execVM "Scripts\Garage.sqf";
- waitUntil {scriptDone _null};
- sleep (random 5);
- {
- if ((typeOf _x) in (Supported_Vehicles_ALL)) then
- {
- Veh_Array pushBack _x;
- _null = [_x] execVM "Scripts\Garage.sqf";
- waitUntil {scriptDone _null};
- };
- } forEach (vehicles);
- cutText ["Garage loaded","PLAIN",2];
- while {true} do
- {
- sleep (random [20,30,40]);
- //Delete vehicles from "Veh_Array" if not in "vehicles"
- {
- if !(_x in vehicles) then
- {
- Veh_Array = Veh_Array - [_x];
- };
- } forEach (Veh_Array);
- {
- if (((typeOf _x) in (Supported_Vehicles_All)) && !(_x in Veh_Array)) then
- {
- Veh_Array pushBack [_x];
- _null = [_x] execVM "Scripts\Garage.sqf";
- waitUntil {scriptDone _null};
- };
- } forEach (vehicles);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement