summaryrefslogtreecommitdiffstats
path: root/Client/Module/Nuke/radzone.sqf
blob: 084b66f23aedb5ee180e359e4d5072c9c0ee3393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;
};