[2.0.28] player_index missing from some `on_space_platform_built_entity` events
Posted: Tue Jan 07, 2025 7:00 pm
Removing entities on a space platform via right-click fires the `on_space_platform_built_entity` event with `player_index` field populated in the event object.
Removing via cut action or removal blueprint does NOT include `player_index` in the event callback.
Both of these actions are performed by a player and affect the undo/redo stack, so IMO should indicate which player performed them.
Use case: updating entity tags in the undo stack after removal with data a mod needs to restore the previous game state if undo is triggered.
Removing via cut action or removal blueprint does NOT include `player_index` in the event callback.
Both of these actions are performed by a player and affect the undo/redo stack, so IMO should indicate which player performed them.
Use case: updating entity tags in the undo stack after removal with data a mod needs to restore the previous game state if undo is triggered.