Jump to content

need help with nocturnal animations in a script


Deleted28154640User

Recommended Posts

Hiya everyone I'm currently having a problem with my script it works perfectly the first time around but the second time it stuffs up an doesn't work it properly, Im guessing this is because the actor becomes disconnected with the nocturnal furniture marker but I don't know how to make the actor resume using the marker.

 

Scriptname ZZZ_DarkLadyBookScript extends ObjectReference

ObjectReference Property RavensDown Auto
ObjectReference Property RavensUP Auto
ObjectReference Property ShadowPool Auto
ObjectReference Property Shrine Auto
Idle Property DarkladyRise Auto
Idle Property DarkladyDown Auto
Idle Property Darkladyhover Auto
objectreference Property DarkladyMarker auto
ObjectReference Property TheDarkLadyController Auto
Actor Property DarkLady Auto

Event OnActivate(ObjectReference akActionRef)

If (TheDarkLadyController.isenabled())
Game.DisablePlayerControls(True, True, True, False, True, False, True)
RavensDown.PlayAnimation("playanim01")
DarkLady.PlayIdle(DarkladyDown)
DarkLady.PlayIdle(DarkladyDown)
DarkladyMarker.Activate(DarkLady)
ShadowPool.Enable()
ShadowPool.PlayAnimation("idle01")
Utility.wait(3)
ShadowPool.Disable()
TheDarkLadyController.Disable()
utility.wait(5)
Game.EnablePlayerControls()

elseif (TheDarkLadyController.isdisabled())
Game.DisablePlayerControls(True, True, True, False, True, False, True)
ShadowPool.enable()
ShadowPool.PlayAnimation("idle01")
RavensUp.PlayAnimation("playanim01")
DarkLady.PlayIdle(DarkladyRise)
Utility.wait(3)
ShadowPool.Disable()
DarkLady.PLayIdle(Darkladyhover)
TheDarkLadyController.enable()
utility.wait(5)
Game.EnablePlayerControls()
endif
endevent

Here is my script as you can see Ive tried "DarkladyMarker.Activate(DarkLady)" but even that wont get my npc to resume "sitting" at the marker. Please help, thank you.

Link to comment
Share on other sites

YAY I got it working here is the revised script the key was to disable and enable the actor through the script

 

Scriptname ZZZ_DarkLadyBookScript extends ObjectReference

ObjectReference Property RavensDown Auto
ObjectReference Property RavensUP Auto
ObjectReference Property ShadowPool Auto
Idle Property DarkladyRise Auto
Idle Property DarkladyDown Auto
Idle Property Darkladyhover Auto
objectreference Property DarkladyMarker auto
ObjectReference Property TheDarkLadyController Auto
Actor Property DarkLady Auto

Event OnActivate(ObjectReference akActionRef)

If (TheDarkLadyController.isenabled())
Game.DisablePlayerControls(True, True, True, False, True, False, True)
RavensDown.PlayAnimation("playanim01")
DarkLady.PlayIdle(DarkladyDown)
DarkLady.PlayIdle(DarkladyDown)
DarkladyMarker.Activate(DarkLady)
ShadowPool.Enable()
ShadowPool.PlayAnimation("idle01")
Utility.wait(4)
ShadowPool.Disable()
DarkLady.disable()
TheDarkLadyController.Disable()
utility.wait(5)
Game.EnablePlayerControls()

elseif (TheDarkLadyController.isdisabled())
Game.DisablePlayerControls(True, True, True, False, True, False, True)
Darklady.enable()
ShadowPool.enable()
ShadowPool.PlayAnimation("idle01")
utility.wait(3)
RavensUp.PlayAnimation("playanim01")
DarkLady.PlayIdle(DarkladyRise)
Utility.wait(3)
ShadowPool.Disable()
DarkLady.PLayIdle(Darkladyhover)
TheDarkLadyController.enable()
utility.wait(5)
Game.EnablePlayerControls()
endif
endevent

 

Hope this helps anyone having the same issue

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...