Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pod Controller not accounting for :ejectPod() #3017

Open
deltamolfar opened this issue Mar 21, 2024 · 1 comment
Open

Pod Controller not accounting for :ejectPod() #3017

deltamolfar opened this issue Mar 21, 2024 · 1 comment
Labels
Bug Component Suggestion for a new component, or an existing one.

Comments

@deltamolfar
Copy link
Contributor

Describe the bug
Controler Pod -> CP
When ejecting a player from CP-linked vehicle using E2 :ejectPod() method, the "Active", "Driver" and other outputs of CP isn't being refreshed to represent the absence of a driver.

To Reproduce

  1. Spawn a vehicle, CP, and link them
  2. Place E2 with this code:
event playerEnteredVehicle(Player:entity, Vehicle:entity) {
    Vehicle:ejectPod()
}
  1. Press debug on Pod Controller, or get it outputs in any other way
  2. Sit in the vehicle, get ejected, look at outputs

Expected behavior
The outputs should be reset in the same way as when you ejecting a driver using CP's eject input/when driver exits a vehicle himself

Screenshots
image

@deltamolfar
Copy link
Contributor Author

Checked the code for quick fix, never found it.

ENT:PlayerExited() is executing fine in terms the hook, and all if statements are as expected.
The problematic part as far as I see is that WireLib.TriggerOutput have no effect. But as I'm unfamiliar with wiremo code base, it's hard for me to go further

@thegrb93 thegrb93 added Bug Component Suggestion for a new component, or an existing one. labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Component Suggestion for a new component, or an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants