summaryrefslogtreecommitdiffstats
path: root/Client/Module/Nuke/radzone.sqf
diff options
context:
space:
mode:
authorhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
committerhybrid <hybrid@hybridlabs.pro>2026-06-11 19:38:09 +0300
commita3a91d4f45b22fd487ecbc954ad979be5d03efdd (patch)
treea554ab159a347dcd6c00ca1c7c26c1ec3ac0a6bd /Client/Module/Nuke/radzone.sqf
downloada2wf_chernarus-main.tar.gz
a2wf_chernarus-main.tar.bz2
a2wf_chernarus-main.zip
Diffstat (limited to '')
-rw-r--r--Client/Module/Nuke/radzone.sqf20
1 files changed, 20 insertions, 0 deletions
diff --git a/Client/Module/Nuke/radzone.sqf b/Client/Module/Nuke/radzone.sqf
new file mode 100644
index 0000000..084b66f
--- /dev/null
+++ b/Client/Module/Nuke/radzone.sqf
@@ -0,0 +1,20 @@
+//--- Radiation
+Private ['_target','_z'];
+
+
+private ["_target"];
+_target = _this select 0;
+[_target] Spawn {
+ Private ["_array","_dammageable","_target"];
+ _target = _this select 0;
+ _dammageable = ["Man","Car","Motorcycle","Tank","Ship","Air","StaticWeapon"];
+ for [{_z = 0},{_z < 300},{_z = _z + 1}] do {
+ _array = _target nearEntities [_dammageable, 1000];
+ {
+ _x setDammage (getDammage _x + 0.03);
+ {_x setDammage (getDammage _x + 0.05)} forEach crew _x;
+ } forEach _array;
+ sleep (3 + random 3);
+ };
+ deleteVehicle _target;
+}; \ No newline at end of file