Skip to content

Player: Consider multiple systems controlling it#2270

Merged
wjt merged 1 commit into
mainfrom
player-system-controlled
Jun 2, 2026
Merged

Player: Consider multiple systems controlling it#2270
wjt merged 1 commit into
mainfrom
player-system-controlled

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented Jun 2, 2026

Previously, if two scripts called take_control() of player, then the first who called return_control() would change the player to USER_CONTROLLED, even if the other script was assuming that control was taken.

Do as the observers in InteractArea, keeping an array of nodes controlling it.

Previously, if two scripts called take_control() of player, then the first who
called return_control() would change the player to USER_CONTROLLED, even if the
other script was assuming that control was taken.

Do as the observers in InteractArea, keeping an array of nodes controlling it.
@manuq manuq requested a review from a team as a code owner June 2, 2026 14:36
@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented Jun 2, 2026

At one point I had this as part of the townies pull request. I ended up not needing it. But my first implementation of the system-controlled player seems wrong.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Test build no longer available.

@wjt wjt merged commit d725067 into main Jun 2, 2026
7 checks passed
@wjt wjt deleted the player-system-controlled branch June 2, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants