Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _car = _this select 0;
- _carName = typeOf _car ;
- //hint _carName;
- switch (_carName) do
- {
- case "C_Van_02_vehicle_F":
- {
- _doorState = _car doorPhase "door_4_source";
- if (_doorState == 1) then
- {
- _car animateDoor ["door_4_source",0,false];
- }
- else
- {
- _car animateDoor ["door_4_source",1,false];
- };
- removeallActions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",5];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf",nil,1.5,false,false,"","true",5];
- }
- else
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf",nil,1.5,false,false,"","true",5];
- };
- if (count attachedObjects _car > 0) then
- {
- _car addAction ["Aus Fahrzeug entfernen","carryObj.sqf"];
- };
- };
- case "C_Offroad_01_F":
- {
- _doorState = _car animationPhase "HideDoor3";
- if (_doorState == 1) then
- {
- _car animate ["HideDoor3",0];
- }
- else
- {
- _car animate ["HideDoor3",1];
- };
- removeallActions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",5];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf",nil,1.5,false,false,"","true",5];
- }
- else
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf",nil,1.5,false,false,"","true",5];
- };
- if (count attachedObjects _car > 0) then
- {
- _car addAction ["Aus Fahrzeug entfernen","carryObj.sqf"];
- };
- };
- case "C_Van_02_transport_F":
- {
- _doorState = _car doorPhase "door_4_source";
- if (_doorState == 1) then
- {
- _car animateDoor ["door_4_source",0,false];
- }
- else
- {
- _car animateDoor ["door_4_source",1,false];
- };
- removeallActions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",5];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf",nil,1.5,false,false,"","true",5];
- }
- else
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf",nil,1.5,false,false,"","true",5];
- };
- if (count attachedObjects _car > 0) then
- {
- _car addAction ["Aus Fahrzeug entfernen","carryObj.sqf"];
- };
- };
- case "B_Heli_Transport_03_unarmed_F":
- {
- _doorState = _car doorPhase "Door_rear_source";
- if (_doorState == 1) then
- {
- _car animateDoor ["Door_rear_source", 0,false];
- }
- else
- {
- _car animateDoor ["Door_rear_source", 1,false];
- };
- removeallActions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",6];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf",nil,1.5,false,false,"","true",6];
- }
- else
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf",nil,1.5,false,false,"","true",6];
- };
- if (count attachedObjects _car > 0) then
- {
- _car addAction ["Aus Fahrzeug entfernen","carryObj.sqf"];
- };
- };
- case "O_MRAP_02_F":
- {
- _doorState = _car doorPhase "Door_rear";
- if (_doorState == 1) then
- {
- _car animateDoor ["Door_rear", 0,false];
- }
- else
- {
- _car animateDoor ["Door_rear", 1,false];
- };
- removeallActions _car;
- _car addAction ["In Fahrzeug ablegen","placeInObj.sqf",nil,1.5,false,false,"","true",6];
- if (_doorState == 1) then
- {
- _car addAction ["Kofferraum oeffnen","openTunk.sqf",nil,1.5,false,false,"","true",6];
- }
- else
- {
- _car addAction ["Kofferraum schliessen","openTunk.sqf",nil,1.5,false,false,"","true",6];
- };
- if (count attachedObjects _car > 0) then
- {
- _car addAction ["Aus Fahrzeug entfernen","carryObj.sqf"];
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement