sbox-issues icon indicating copy to clipboard operation
sbox-issues copied to clipboard

GameObjectSystem Listen Order not being respected/followed

Open dotryen opened this issue 1 year ago • 0 comments

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

  1. Make two systems
  2. Give them listen events on the same stage but different order. (Preferably SceneLoaded)
  3. Log a message on each system
  4. Start the game.
  5. Restart the editor.
  6. 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

image image

Additional context

No response

dotryen avatar Aug 18 '24 06:08 dotryen