|
|
|
@ -22,13 +22,13 @@ bool function UnlockScrollEquipped() |
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
Event OnUpdate() |
|
|
|
|
if UnlockScrollController.IsStopped() |
|
|
|
|
if ! UnlockScrollController.Start() |
|
|
|
|
if UnlockScrollAliases.IsStopped() |
|
|
|
|
if ! UnlockScrollAliases.Start() |
|
|
|
|
RegisterForSingleUpdate(0.1) |
|
|
|
|
endif |
|
|
|
|
elseif UnlockScrollController.IsStopping() |
|
|
|
|
elseif UnlockScrollAliases.IsStopping() |
|
|
|
|
RegisterForSingleUpdate(0.01) |
|
|
|
|
elseif UnlockScrollController.IsStarting() |
|
|
|
|
elseif UnlockScrollAliases.IsStarting() |
|
|
|
|
RegisterForSingleUpdate(0.01) |
|
|
|
|
endif |
|
|
|
|
EndEvent |
|
|
|
@ -42,24 +42,24 @@ state Equipped |
|
|
|
|
|
|
|
|
|
event OnBeginState() |
|
|
|
|
ObjectReference actorRef = GetReference() |
|
|
|
|
RegisterForAnimationEvent(actorRef, "MRh_SpellFire_Event") |
|
|
|
|
RegisterForAnimationEvent(actorRef, "MLh_SpellFire_Event") |
|
|
|
|
RegisterForAnimationEvent(actorRef, "BeginCastRight") |
|
|
|
|
RegisterForAnimationEvent(actorRef, "BeginCastLeft") |
|
|
|
|
endevent |
|
|
|
|
|
|
|
|
|
event OnEndState() |
|
|
|
|
ObjectReference actorRef = GetReference() |
|
|
|
|
UnregisterForAnimationEvent(actorRef, "MRh_SpellFire_Event") |
|
|
|
|
UnregisterForAnimationEvent(actorRef, "MLh_SpellFire_Event") |
|
|
|
|
UnregisterForAnimationEvent(actorRef, "BeginCastRight") |
|
|
|
|
UnregisterForAnimationEvent(actorRef, "BeginCastLeft") |
|
|
|
|
endevent |
|
|
|
|
|
|
|
|
|
Event OnUpdate() |
|
|
|
|
if UnlockScrollController.IsStopped() |
|
|
|
|
if ! UnlockScrollController.Start() |
|
|
|
|
if UnlockScrollAliases.IsStopped() |
|
|
|
|
if ! UnlockScrollAliases.Start() |
|
|
|
|
RegisterForSingleUpdate(0.1) |
|
|
|
|
endif |
|
|
|
|
elseif UnlockScrollController.IsStopping() |
|
|
|
|
elseif UnlockScrollAliases.IsStopping() |
|
|
|
|
RegisterForSingleUpdate(0.01) |
|
|
|
|
elseif UnlockScrollController.IsStarting() |
|
|
|
|
elseif UnlockScrollAliases.IsStarting() |
|
|
|
|
RegisterForSingleUpdate(0.01) |
|
|
|
|
endif |
|
|
|
|
EndEvent |
|
|
|
@ -81,17 +81,17 @@ state Equipped |
|
|
|
|
Form baseObject = crosshairRef.GetBaseObject() |
|
|
|
|
if baseObject as Container || baseObject as Door |
|
|
|
|
ScrollTarget.ForceRefTo(crosshairRef) |
|
|
|
|
UnlockScrollController.Stop() |
|
|
|
|
UnlockScrollAliases.Stop() |
|
|
|
|
return |
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
UnlockScrollController.Stop() |
|
|
|
|
UnlockScrollAliases.Stop() |
|
|
|
|
RegisterForSingleUpdate(0.01) |
|
|
|
|
ScrollTarget.Clear() |
|
|
|
|
endEvent |
|
|
|
|
endstate |
|
|
|
|
|
|
|
|
|
Quest Property UnlockScrollController Auto |
|
|
|
|
Quest Property UnlockScrollAliases Auto |
|
|
|
|
FormList Property _00E_UnlockScrolls Auto |
|
|
|
|
ReferenceAlias Property ScrollTarget Auto |
|
|
|
|