Background for Skyrim SE

SWE


Inheritance Tree

No indexed scripts extend this script.

Properties

dynamicwetness

intcat_skin_face=1
intcat_hair=2
intcat_armor_cloth=4
intcat_weapon=8
intcat_mask_4bit=15
intflag_passthrough=65536
intflag_no_autodry=131072
intflag_zero_base=262144
intmask_skin_passthrough=458753
intenv_water=1
intenv_wet_weather=2
intenv_near_heat=4
intenv_under_roof=8
intenv_exterior_open=16
Events
Functions
voidfunctionSetExternalWetness(ActorakActor, stringkey, floatvalue, floatdurationSec=-1)NativeGlobal

Set/update an external source (default category = Skin).
durationSec <= 0 => infinite until cleared.

voidfunctionSetExternalWetnessMask(ActorakActor, stringkey, floatvalue, floatdurationSec=-1, intcatMask=1)NativeGlobal

Set/replace value AND categories/flags for this key.
IMPORTANT: catMask contains both categories (low 4 bits) AND flags (high bits).
Example: Int m = CAT_SKIN_FACE + CAT_HAIR + FLAG_PASSTHROUGH

voidfunctionSetExternalWetnessEx(ActorakActor, stringkey, floatvalue, floatdurationSec, intcatMask, floatmaxGloss=-1, floatmaxSpec=-1, floatminGloss=-1, floatminSpec=-1, floatglossBoost=-1, floatspecBoost=-1, floatskinHairMul=-1)NativeGlobal

Extended variant with optional per-material overrides.
Any negative override value => ignore (do not force/override).

voidfunctionClearExternalWetness(ActorakActor, stringkey)NativeGlobal

Remove this external source (key is trimmed & lowercased internally).

floatfunctionGetBaseWetness(ActorakActor)NativeGlobal

Raw: base wetness computed from water/rain etc. (0..1), before external sources.

floatfunctionGetFinalWetness(ActorakActor)NativeGlobal

Final: wetness after categories/blending/external sources (0..1).

floatfunctionGetExternalWetness(ActorakActor, stringkey)NativeGlobal

Value of a specific external source key (0..1), 0 if not present.

boolfunctionIsActorWetByWater(ActorakActor)NativeGlobal

True if water contact is strong enough (alias of "in water" check).

floatfunctionGetSubmergedLevel(ActorakActor)NativeGlobal

Submerged fraction (0 = dry, 1 = fully submerged).

boolfunctionIsWetWeatherAround(ActorakActor)NativeGlobal

True if precipitation (rain/snow) is active and relevant for actor.

boolfunctionIsUnderRoof(ActorakActor)NativeGlobal

True if actor is under roof/cover (heuristic).

boolfunctionIsNearHeatSource(ActorakActor, floatradius=0.0)NativeGlobal

True if actor is near a heat source; radius in world units.
Pass 0.0 to use the mod's configured radius.

boolfunctionIsActorInExteriorWet(ActorakActor)NativeGlobal

True if actor is in exterior and not covered (i.e., exposed).

intfunctionGetEnvMask(ActorakActor)NativeGlobal

Bitmask of environment flags (see ENV_* above).

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.