
_unit = _this select 0
_ammo = _this select 1
_range = _this select 2
_rounds = _this select 3
_interval = _this select 4
#Loop
_ox = getPos _unit select 0
_oy = getPos _unit select 1
_oz = getPos _unit select 2
?(_oz>5): _oz = _oz + Random(5) - 10
_dir = Random(360)
_wybuch = _ammo camCreate [_ox + sin(_dir)*_range,_oy + cos(_dir)*_range, _oz]
?(_oz>1):_wybuch = _ammo camCreate [_ox + sin(_dir)*_range,_oy + cos(_dir)*_range, _oz]
_rounds = _rounds - 1
~_interval
?(_rounds>1): goto "Loop"
Exit
Skrypt alderousa. Wybychy nie są w tym samym miejscu więc to może ci pomóc