Osiris/Shared/PROC LoopEffect

From Divinity Engine Wiki
Revision as of 23:16, 9 July 2018 by DerCapac (talk | contribs) (Created page with "===== Full Definition(s) ===== * PROC '''PROC_LoopEffect'''(''(STRING)'''''_Effect''', ''(GUIDSTRING)'''''_Source''', ''(STRING)'''''_FXHandle''', ''(STRING)'''''_Region''', '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • PROC PROC_LoopEffect((STRING)_Effect, (GUIDSTRING)_Source, (STRING)_FXHandle, (STRING)_Region, (STRING)_BoneName)
Description

Plays the looping effect _Effect on the bone _BoneName of _Source. If _BoneName is set to an empty string, the loop effect will be attached to the root of _Source.

The effect will only be played if the player is in the level _Region. If the effect should be played in any region (e.g. cause the loop effect is attached to the player itself), the region must be set to "__ANY__".

The _FXHandle is used to stop the loop effect through ProcStopLoopEffect.

Notes
  • This is a wrapper around the Osiris call PlayLoopEffect. It takes care of starting/stopping loop effects when entering or leaving regions.
See Also