Jump to content

Do something as soon as a quest reaches a certain stage ("OnStageSet" in a normal script?)


Recommended Posts

Good evening everybody!

 

So, I know that there is "OnStageSet" to do stuff inside of a quest script fragment.

 

But is there something like that for use in a regular script?

 

I want a object to move as soon as a quest gets set to a certain stage, with a script that is attached to that object.

Link to comment
Share on other sites

You can use registerForRemoteEvent.

 

 

Example Script:

 

Quest Property MyQuest Auto 

Event OnInit() 
    RegisterForRemoteEvent(MyQuest, "OnStageSet") 
EndEvent 

Event Quest.OnStageSet(Quest akSender, int auiStageID, int auiItemID)
    If auiStageID == 10
        ;Do something 
        UnRegisterForRemoteEvent(MyQuest, "OnStageSet") ;unregister event if not needed anymore
    Endif
EndEvent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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