Jump to content

Recommended Posts

Posted

Trying to add multiple quest scripts.

Looks like only the first Quest script fire the 'OnQuestInit' event.

 

Can someone deny or confirm this behavior, before I spend another 12 hours of debugging?

Thanks!!

 

Posted

Yes if "Start Game Enabled" and "Run Once" is unchecked then OnQuestInit will fire twice. Use a Bool to lock the function:

Bool bRunOnce = FALSE

Event OnQuestInit()
If (bRunOnce == FALSE) 
  bRunOnce == TRUE
 ;do stuff
EndIf
EndEvent
Posted
  On 4/19/2019 at 10:19 AM, Reginald001 said:

Trying to add multiple quest scripts.

Looks like only the first Quest script fire the 'OnQuestInit' event.

 

Can someone deny or confirm this behavior, before I spend another 12 hours of debugging?

Thanks!!

 

Thank you! I'll look into this.

  • Recently Browsing   0 members

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