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
[Bug] Player:SetSquadLeader
event has bugs
#746
Comments
Talking about the server event. The client event seems to work. |
you have 2 players in 1 squad, you use you use you leave a squad as squad leader you create a new squad |
Player:SetSquadLeader
event is not workingPlayer:SetSquadLeader
event has bugs
Just run this mod and you will see all issues: The output that I got. First I always describe what I am going to do and then I print the actual state of the players. And then it should trigger the
|
For changing squad leaders within a squad it would be nice if the old squad leader would trigger the event FYI: In |
This should be a new issue, has nothing to do with Player:SetSquadLeader, but the isSquadLeader call. |
But the Player is also wrong. and when leaving the squad (by setting it the squadId to 0) it didn't fire the event. |
Isn't that the same behavior you asked me not to change? I'm not understanding the actual issue that's happening anymore. |
Ye for the |
This has been resolved by firing the event after updating frostbite instead of before. This should re-align properly with expectations. This IS A BREAKING CHANGE please be warned. Pushed to experimental waiting for build. RCON will be fixed in the next part. |
Fixed in build |
I tried
player:SetSquadLeader(leader: bool, squadPrivate: bool)
andsquad.leader 1 1 voteban_flash
but the event doesn't get triggered by that. Seems like this never worked because I went to prod branch and there it also doesn't work. So it's not a new issue.Also I wonder if
Player:SetSquad
should get called if a squad leader doesn't leave the squad but is no squad leader anymore.The text was updated successfully, but these errors were encountered: