ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
209 stars 26 forks source link

Preview 2.0b Wait Async Not Functioning Properly #223

Closed Jordan-Ireland closed 3 months ago

Jordan-Ireland commented 3 years ago

The Wait Async function seems to be firing immediately instead of waiting the allotted time. I even tried copy pasting the code provided in the Preview 2.0 release documents.

Protowalker commented 3 years ago

Can you add a repro?

Jordan-Ireland commented 3 years ago

@Protowalker I built from #221 with no changes. I can paste my .del code if you want. I'm away from computer for a few hours

Protowalker commented 3 years ago

You've built from source, then? Or are you using Preview 2b?

Jordan-Ireland commented 3 years ago

@Protowalker Sorry, I built from the source #227. I didn't know there was a difference in "Preview 2b" vs your working source.

Protowalker commented 3 years ago

@ItsDeltin I'm unable to test this on my system (I'm getting an exception when using WaitAsync). Are you able to look into it?

ItsDeltin commented 3 years ago

Maybe you are using milliseconds? WaitAsync uses seconds rather than milliseconds. I would prefer it be milliseconds, but it is consistent with the workshop's Wait action.

I meant to improve WaitAsync's documentation before releasing preview B but it slipped my mind.