New Run argument in WaitFor will run code after the subscribe but before the wait to close some race conditions when using coroutines and cross script events.

Example

// It is possible for a script to respond to the "Message" event before the WaitFor, in which case the response could be lost.
PostScriptEvent("Message");
WaitFor(SubscribeToScriptEvent, "Response");
// Instead this is guaranteed to do PostScriptEvent after being set up to receive the response.
WaitFor(SubscribeToScriptEvent, "Response", () => { PostScriptEvent("Message") });

New limits on number of pending events on a script to prevent memory blowout

Use PendingEventCount to get number of pending events.

Events queued when there are already 256 pending events will be discarded