Skip to content

Instantly share code, notes, and snippets.

@commy2
Created August 28, 2019 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save commy2/c976dbf1dde3c43dee7709f79aecf9e3 to your computer and use it in GitHub Desktop.
Save commy2/c976dbf1dde3c43dee7709f79aecf9e3 to your computer and use it in GitHub Desktop.
// init.sqf
#define WET_EFFECT_INTESITY 1
["unit", {
params ["_unit"];
if (isNil "mission_wetFX") then {
mission_wetFX = "#particlesource" createVehicleLocal [0,0,0];
mission_wetFX setParticleClass "ACERainEffect";
mission_wetFX setDropInterval (0.07 * (1.1 - WET_EFFECT_INTESITY));
};
detach mission_wetFX;
mission_wetFX attachTo [_unit, [0,0,0]];
}, true] call CBA_fnc_addPlayerEventHandler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment