summaryrefslogtreecommitdiffstats
path: root/Client/Module/ZetaCargo/Zeta_Unhook.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:53:22 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:53:22 +0300
commitc055d44dcdb87e8db49fb23e632fc086aa44cce6 (patch)
tree7ac98d865915930bebc86b36b512a859c31538e5 /Client/Module/ZetaCargo/Zeta_Unhook.sqf
downloada2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.gz
a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.tar.bz2
a2wf_zargabad-c055d44dcdb87e8db49fb23e632fc086aa44cce6.zip
init
Diffstat (limited to 'Client/Module/ZetaCargo/Zeta_Unhook.sqf')
-rw-r--r--Client/Module/ZetaCargo/Zeta_Unhook.sqf21
1 files changed, 21 insertions, 0 deletions
diff --git a/Client/Module/ZetaCargo/Zeta_Unhook.sqf b/Client/Module/ZetaCargo/Zeta_Unhook.sqf
new file mode 100644
index 0000000..3e06b0f
--- /dev/null
+++ b/Client/Module/ZetaCargo/Zeta_Unhook.sqf
@@ -0,0 +1,21 @@
+private ["_actionID","_caller","_lifter","_param","_vehicle"];
+
+_lifter = _this select 0;
+_caller = _this select 1;
+_actionID = _this select 2;
+_param = _this select 3;
+_vehicle = _param select 0;
+
+_lifter setVariable ["Attached",false];
+detach _vehicle;
+if ((typeOf _lifter) in Zeta_Special) then {
+ _vehicle setPos [(getPos _lifter select 0) - (15 * sin (getDir _vehicle)), (getPos _lifter select 1) - (15 * cos (getDir _vehicle)), getPos _lifter select 2];
+};
+
+_vehicle setVelocity (velocity _lifter);
+
+_lifter removeAction _actionID;
+
+sleep 1;
+
+if ((getPos _vehicle) select 2 < 0) then {_vehicle setPos [(getPos _vehicle) select 0,(getPos _vehicle) select 1,0];_vehicle setVelocity [0,0,-0.1]}; \ No newline at end of file