YouDoNotKnowMyName Posted April 27, 2021 Share Posted April 27, 2021 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 More sharing options...
dylbill Posted April 27, 2021 Share Posted April 27, 2021 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 More sharing options...
Recommended Posts