OnRoundEndAction triggers immediately if inside another event action #13966
ubertpendragon
started this conversation in
Code questions and modding support
Replies: 1 comment 1 reply
-
OnRoundEndAction should not be put inside another event action, it must be at the root level. I think semantically the second example is a little strange: you essentially have a block of code that should execute when something happens during the round, and at the same time want it to happen at the end of the round. If we allowed this, I think it could lead to some unintuitive behavior and ambiguities: should the event continue execution through the OnRoundEndAction or wait until the end of the round? When do the actions after OnRoundEndAction get executed, if ever? When is the event considered completed? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Disclaimers
What happened?
OnRoundEndAction doesn't wait for round end and triggers immediately if put inside another event action
2 examples:
Simple version: checks if player is alive and in submarine on round end. WORKS
Now uses CheckDataAction (typical for not repeating events). TRIGGERS AUTOMATICALLY
Reproduction steps
triggerevent vipnapping2
triggerevent vipnapping3
Bug prevalence
Happens every time I play
Single player or multiplayer?
Other
-
No response
Version
v1.4.6.0 (Blood in the Water Update, hotfix 2)
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response
Beta Was this translation helpful? Give feedback.
All reactions