enderalse/source/scripts/_00e_enableobjectontriggerenter.psc

30 lines
748 B
Plaintext
Raw Normal View History

Scriptname _00E_EnableObjectOnTriggerEnter extends ObjectReference
ObjectReference Property XMarker Auto
int doOnce
Sound Property MAGVampireSunlight Auto
ImagespaceModifier Property _00E_Ark_NQ_Kor_SunlightImodShort Auto
MiscObject Property _00E_BloodySkull Auto
Sound Property _00E_Ark_NQ_Kor_Voices01Marker Auto
Event OnTriggerEnter(ObjectReference akActionRef)
bool PlayerIsInCombat = Game.GetPlayer().IsInCombat()
if doOnce == 0
If (PlayerIsInCombat == false) && akActionRef == Game.GetPlayer()
_00E_Ark_NQ_Kor_Voices01Marker.PlayAndWait(Game.GetPlayer())
_00E_Ark_NQ_Kor_SunlightImodShort.Apply()
XMarker.PlaceAtMe(_00E_BloodySkull, 15)
MAGVampireSunlight.Play(Game.GetPlayer())
doOnce = 1
endif
else
return
endif
EndEvent