Created
December 27, 2018 21:23
-
-
Save diwako/08aa15984d0db39b0f06cf6c1aec3e10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CUL_snowEmitter = objNull; | |
CUL_doSnow = { | |
private _unit = ACE_player; | |
if (alive _unit && {!([_unit] call ace_common_fnc_isInBuilding)}) then { | |
if (isNull CUL_snowEmitter) then { | |
CUL_snowEmitter = "#particlesource" createVehicleLocal getpos _unit; | |
CUL_snowEmitter setParticleParams [ | |
["\A3\data_f\ParticleEffects\Universal\Universal",16,12,13,1], | |
"", | |
"Billboard", | |
1, | |
10, | |
[0,0,0], | |
[0,0,-10], | |
10,1,0,1, | |
[0.12,0.12,0.12,0.12,0], | |
[[1,1,1,0.5], | |
[1,1,1,0.5]], | |
[0,1], | |
0.25, | |
1, | |
"", | |
"", | |
CUL_snowEmitter, | |
0,false,0.01 | |
]; | |
CUL_snowEmitter setParticleCircle [0.0,[0, 0, 0]]; | |
CUL_snowEmitter setParticleRandom [0,[25,25,18],[0,0,0],0,0.01,[0,0,0,0.1],0,0]; | |
CUL_snowEmitter setDropInterval (0.0001 * ceil random 4); | |
}; | |
CUL_snowEmitter setPosASL (AGLToASL positionCameraToWorld [0,0,0]); | |
} else { | |
deleteVehicle CUL_snowEmitter; | |
}; | |
}; | |
[{[] call CUL_doSnow}, 0.5] call cba_fnc_addPerFrameHandler; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment