Skip to content

Commit 9a71df2

Browse files
committed
improve docs
1 parent f065a90 commit 9a71df2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/src/Summary/running-scripts.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ app.add_systems(Update, event_handler::<OnEvent, LuaScriptingPlugin>);
4747

4848
Note the system is parameterized by the label we defined earlier, and the scripting plugin we are using. You can add as many of these systems as you like.
4949

50-
The event handler will catch all events with the label `OnEvent` and trigger the `on_event` callback on all targeted scripts which have that callback defined.
50+
The event handler will catch all events with the label `OnEvent` and trigger the `on_event` callback on all targeted scripts which have that callback defined.
51+
52+
In order to handle events in the same frame and not accidentally have events "spill over" into the next frame, you should make sure to order any systems which produce these events *before* the event handler systems.
53+

0 commit comments

Comments
 (0)