Тестировалось:
ARMA 2 v1.11, ARMA 2 OA
--------------------------------------------------
В Init.sqf пишем следующее:
Код:
Wind_Dust = { setwind [0.201112,0.204166,true]; while {true} do { _ran = ceil random 2; playsound format ["wind_%1",_ran]; _pos = position player; setwind [0.201112*2,0.204166*2,false]; _velocity = [random 10,random 10,-1]; _color = [0.5, 0.4, 0.3]; _alpha = 0.3 + random 0.1; _ps = "#particlesource" createVehicleLocal _pos; _ps setParticleParams [["\Ca\Data\ParticleEffects\Universal\Universal.p3d", 16, 12, 8], "", "Billboard", 1, 3, [0, 0, -6], _velocity, 1, 1.275, 1, 0, [9], [_color + [0], _color + [_alpha], _color + [0]], [1000], 1, 0, "", "", _pos]; _ps setParticleRandom [3, [30, 30, 0], [0, 0, 0], 1, 0, [0, 0, 0, 0.01], 0, 0]; _ps setParticleCircle [0.1, [0, 0, 0]]; _ps setDropInterval 0.01; sleep (random 1); _delay = 1 + random 5; sleep _delay; deletevehicle _ps; }; };
Для запуска функции прописываем например в триггере: windd = player spawn Wind_Dust
Теги: ARMA 2