Jump to content

[LE] How to add a delay on a dwemer button?


Recommended Posts

Auto State Waiting

Event OnActivate(...)

GoToState("Activated")

RegisterForSingleUpdate(5.0)

.......

.......

EndEvent

EndState

 

State Activated

Event OnActivate(...)

;

EndEvent

EndState

 

Event OnUpdate()

GoToState("Waiting")

EndEvent

Link to comment
Share on other sites

Thank you Maxaturo. I'm still trying to figure out states and worse functions. They sort of make my brain ache right now looking at example scripts to try to figure out exactly how they are working. At least now that I'm retired I'll have more time to work on learning about them.

Link to comment
Share on other sites

Another way you can do this without using "RegisterForSingleUpdate" is:


Auto State Waiting

Event OnActivate(...)


GoToState("Activated")


.......etc

.......etc


Utility.Wait(5.0)

GoToState("Waiting")


EndEvent

EndState



State Activated

Event OnActivate(...)

; Do Nothing

EndEvent

EndState
Link to comment
Share on other sites

  • Recently Browsing   0 members

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