4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
748 B

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