sbox-issues
sbox-issues copied to clipboard
GameObjectSystem Listen Order not being respected/followed
Describe the bug
Different listen events on the same stage do not follow the order they are set. Their execution order is determined by creation order.
To Reproduce
- Make two systems
- Give them listen events on the same stage but different order. (Preferably
SceneLoaded) - Log a message on each system
- Start the game.
- Restart the editor.
- Watch it randomize.
Expected behavior
The calls should ALWAYS be within the specified order. Things in people's games can break if they use these systems. (like me)
Media/Files
StateSystem has a SceneLoaded listener set at -1000
EnemySquadSystem has a SceneLoaded listener set at 100
Additional context
No response