Rayvan27 Posted January 28, 2017 Posted January 28, 2017 Need a bit of help. I made a quest dialogue but I'm having issues. Utility.WaitGameTime(24) GetOwningQuest ().SetStage (10) It compiles but in game when I'm at the last dialogue option it will not let me exit the dialogue. I even have the goodbye 9ption checked. I'm neworking at scripting but I just want a quest to have wait times in between stages.
DocClox Posted January 30, 2017 Posted January 30, 2017 Need a bit of help. I made a quest dialogue but I'm having issues. Utility.WaitGameTime(24) GetOwningQuest ().SetStage (10) It compiles but in game when I'm at the last dialogue option it will not let me exit the dialogue. I even have the goodbye 9ption checked. I'm neworking at scripting but I just want a quest to have wait times in between stages. It's been a while, but waitGameTime pauses the script for the specified period. If you have a dialogue or a message box open and waiting for the script to finish, that's not going to happen until that much game has passed. Which could be a long time if the box has suspended game time while open. What you probably want is RegisterForSingleUpdateGameTime, and then write an OnUpdate event to trigger when the update fires. That way you'll get a thread that goes to sleep and lets the game progress normally and then wakes up when the specified period has passed
Recommended Posts
Archived
This topic is now archived and is closed to further replies.