1
Fork 0

Fixed Papyrus spam in _00E_FS_NQ07_LightScript

development
Eddoursul 4 months ago
parent f5e9064d9e
commit 839df7c06f
  1. BIN
      scripts/_00e_fs_nq07_lightscript.pex
  2. 17
      source/scripts/_00e_fs_nq07_lightscript.psc

@ -4,14 +4,18 @@ Scriptname _00E_FS_NQ07_LightScript extends activemagiceffect
; EVENTS ; EVENTS
;===================================================================================== ;=====================================================================================
bool bActive
Event OnEffectStart(Actor akTarget, Actor akCaster) Event OnEffectStart(Actor akTarget, Actor akCaster)
bActive = true
EnableAllRefsInFormlist() EnableAllRefsInFormlist()
EndEvent EndEvent
Event OnEffectFinish(Actor akTarget, Actor akCaster) Event OnEffectFinish(Actor akTarget, Actor akCaster)
bActive = false
DisableAllRefsInFormlist() DisableAllRefsInFormlist()
EndEvent EndEvent
@ -26,12 +30,19 @@ Function EnableAllRefsInFormlist()
while iIndex > 0 while iIndex > 0
if ! bActive
return
endif
iIndex -= 1 iIndex -= 1
ObjectReference ref = _00E_FS_NQ07_LightList.GetAt(iIndex) as ObjectReference ObjectReference ref = _00E_FS_NQ07_LightList.GetAt(iIndex) as ObjectReference
ref.EnableNoWait() ref.EnableNoWait()
_00E_TeleportOutVFX.Play(ref)
ref.GetLinkedRef().EnableNoWait() ref.GetLinkedRef().EnableNoWait()
if ref.Is3DLoaded()
_00E_TeleportOutVFX.Play(ref)
MAGIllusionNightEyeOn.Play(ref) MAGIllusionNightEyeOn.Play(ref)
endif
endwhile endwhile
@ -45,9 +56,11 @@ Function DisableAllRefsInFormlist()
iIndex -= 1 iIndex -= 1
ObjectReference ref = _00E_FS_NQ07_LightList.GetAt(iIndex) as ObjectReference ObjectReference ref = _00E_FS_NQ07_LightList.GetAt(iIndex) as ObjectReference
if ref.Is3DLoaded()
MAGIllusionNightEyeOff.Play(ref)
endif
ref.DisableNoWait() ref.DisableNoWait()
ref.GetLinkedRef().DisableNoWait() ref.GetLinkedRef().DisableNoWait()
MAGIllusionNightEyeOff.Play(ref)
endwhile endwhile

Loading…
Cancel
Save