Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _car = (_this select 0);
- _unit = (_this select 1);
- _carName = typeof _car;
- FNC_MZ_GetOutCar = {
- _car = _this select 0;
- _carName = typeOf _car;
- _i = 0;
- _maxAttached = count attachedObjects _car;
- _n = 0;
- _f = 0;
- _b = -9;
- {
- _n = _n + 1;
- detach _x;
- switch (_carName) do
- {
- case "B_UGV_01_F":
- {
- _b = -4;
- };
- case "B_Heli_Transport_03_unarmed_F":
- {
- _b = -9;
- };
- case "C_Van_02_vehicle_F":
- {
- _b = -6;
- };
- case "C_Van_02_transport_F":
- {
- _b = -6;
- };
- case "C_Offroad_01_F":
- {
- _b = -5;
- };
- case "O_MRAP_02_F":
- {
- _b = -8;
- };
- };
- _x setPos (_car modelToWorld [0,_b +_f,0]);
- _x setPos [getPos _x select 0,getPos _x select 1,0 + _i];
- _x setDir (getDir _car) + 90;
- _i = _i + 0.67;
- if (_n == 3) then
- {
- _f = _f - 1;
- _n = 0;
- _i = 0;
- };
- removeallactions _x;
- _x addAction ["Aufheben","carry_create.sqf"];
- } forEach attachedObjects _car;
- };
- switch (_carName) do
- {
- //Van Transport
- case "C_Van_02_vehicle_F":
- {
- _doorState = _car doorPhase "door_4_source";
- if (_doorState == 1) then
- {
- _handle = false;
- _handle = [[_car],"FNC_MZ_GetOutCar",true,true] call BIS_fnc_MP;
- removeallactions _unit;
- removeallactions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",5];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf"];
- }
- else
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf"];
- };
- }
- else
- {
- hint "Fahrzeugtuer ist geschlossen";
- };
- };
- //Van Group
- case "C_Van_02_transport_F":
- {
- _doorState = _car doorPhase "door_4_source";
- if (_doorState == 1) then
- {
- _handle = false;
- _handle = [[_car],"FNC_MZ_GetOutCar",true,true] call BIS_fnc_MP;
- removeallactions _unit;
- removeallactions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",5];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf"];
- }
- else
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf"];
- };
- }
- else
- {
- hint "Fahrzeugtuer ist geschlossen";
- };
- };
- //Offroad UNARMED
- case "C_Offroad_01_F":
- {
- _doorState = _car animationPhase "HideDoor3";
- if (_doorState == 1) then
- {
- _handle = false;
- _handle = [[_car],"FNC_MZ_GetOutCar",true,true] call BIS_fnc_MP;
- removeallactions _unit;
- removeallactions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",5];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf"];
- }
- else
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf"];
- };
- }
- else
- {
- hint "Fahrzeugtuer ist geschlossen";
- };
- };
- //HURON UNARMED
- case "B_Heli_Transport_03_unarmed_F":
- {
- _doorState = _car doorPhase "Door_rear_source";
- if (_doorState == 1) then
- {
- _handle = false;
- _handle = [[_car],"FNC_MZ_GetOutCar",true,true] call BIS_fnc_MP;
- removeallactions _unit;
- removeallactions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",10];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf"];
- }
- else
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf"];
- };
- }
- else
- {
- hint "Fahrzeugtuer ist geschlossen";
- };
- };
- //Stomper NATO
- case "B_UGV_01_F":
- {
- _handle = false;
- _handle = [[_car],"FNC_MZ_GetOutCar",true,true] call BIS_fnc_MP;
- removeallactions _unit;
- removeallactions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",5];
- };
- //Ifrit UNARMED
- case "O_MRAP_02_F":
- {
- _doorState = _car doorPhase "Door_rear";
- if (_doorState == 1) then
- {
- _handle = false;
- _handle = [[_car],"FNC_MZ_GetOutCar",true,true] call BIS_fnc_MP;
- removeallactions _unit;
- removeallactions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",6];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf"];
- }
- else
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf"];
- };
- }
- else
- {
- hint "Fahrzeugtuer ist geschlossen";
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement