enderalse/source/scripts/_00e_theriantrophist_toggledetectlife.psc

13 lines
526 B
Plaintext
Raw Normal View History

Scriptname _00E_Theriantrophist_ToggleDetectLife extends activemagiceffect
Spell Property _00E_Theriantrophist_DetectLife Auto
GlobalVariable Property _00E_Theriantrophist_DetectLifeSwitchedOff Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
if (_00E_Theriantrophist_DetectLifeSwitchedOff.getValueInt() != 0)
_00E_Theriantrophist_DetectLifeSwitchedOff.setValueInt(0)
_00E_Theriantrophist_DetectLife.Cast(self.getTargetActor())
Else
_00E_Theriantrophist_DetectLifeSwitchedOff.setValueInt(1)
Endif
EndEvent