IsSpellTargetAlt

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

An alternate version of the vanilla function IsSpellTarget, that actually works reliably and as advertised. Returns 1 if the calling reference is currently being affected by the specified magic item (an Actor Effect (spell), an Object Effect (enchantment), or an Ingestible (food, drink, chem)).

Syntax

[help]
(spellTarget:0/1) reference.IsSpellTargetAlt effectForm:ref

Example

set bSpellTarget to actorRef.IsSpellTargetAlt WithdrawalAlcohol 

See Also