summaryrefslogtreecommitdiffstats
path: root/Client/Module/Skill/Actions/Officer_Undeploy_MASH.sqf
blob: 99b92e845c84a8a2e51a638dc22cb78caf19a9d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
	Script: Officer Skill MASH Undeploy
	Description: Undeploy the MASH
*/

Private ["_MASH"];

_MASH = _this select 0;

_skip = false;
for '_z' from 0 to 3 do {
	sleep 0.5;
	player playMove "AinvPknlMstpSlayWrflDnon_medic";
	sleep 0.5;
	waitUntil {animationState player == "ainvpknlmstpslaywrfldnon_amovpknlmstpsraswrfldnon" || !alive player || vehicle player != player};
	if (!alive player || vehicle player != player) exitWith {_skip = true};
};

if (!_skip) then {
	deleteVehicle _MASH;
	WFBE_SK_V_LastUse_MASH = -2000;
};