summaryrefslogtreecommitdiffstats
path: root/Client/Module/Arty/ARTY_HandleILLUM.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:54:45 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:54:45 +0300
commit68d4c9bbd80ed2e6528244569c79676b87295bd1 (patch)
tree6efd42fbf6f1281874ae0ff1f8816b01fe0c7153 /Client/Module/Arty/ARTY_HandleILLUM.sqf
downloada2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.gz
a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.tar.bz2
a2wf_takistan-68d4c9bbd80ed2e6528244569c79676b87295bd1.zip
init
Diffstat (limited to 'Client/Module/Arty/ARTY_HandleILLUM.sqf')
-rw-r--r--Client/Module/Arty/ARTY_HandleILLUM.sqf26
1 files changed, 26 insertions, 0 deletions
diff --git a/Client/Module/Arty/ARTY_HandleILLUM.sqf b/Client/Module/Arty/ARTY_HandleILLUM.sqf
new file mode 100644
index 0000000..e6a4d43
--- /dev/null
+++ b/Client/Module/Arty/ARTY_HandleILLUM.sqf
@@ -0,0 +1,26 @@
+/* ILLUM Handler, Battlefield light bringer */
+Private ['_deployPos','_destination','_flare','_force','_shell','_targetToHit','_velocity'];
+_shell = _this select 0;
+_destination = _this select 1;
+_velocity = _this select 2;
+
+//--- 1KM Above.
+_destination set [2, 1000];
+
+//--- Positionate the shell in the air.
+_shell setPos _destination;
+_targetToHit = objNull;
+
+//--- Fall straigh.
+_shell setVelocity [0,0,-_velocity];
+
+//--- Wait before deploying.
+waitUntil {(getPos _shell select 2) < 310};
+
+//--- Retrieve the shell position.
+_deployPos = getPos _shell;
+deleteVehicle _shell;
+
+//--- Deploy a Flare.
+_flare = "ARTY_Flare_Medium" createVehicle _deployPos;
+_flare setPos _deployPos; \ No newline at end of file