LabAPI icon indicating copy to clipboard operation
LabAPI copied to clipboard

[IDEA] Add PlayerRoles to WaveRespawned

Open hatulaile opened this issue 1 year ago • 2 comments

Goal Description

Add PlayerRoles (IReadOnlyDictionary<Player, RoleTypeId>) to WaveRespawnedEventArgs to indicate players' respawn roles

Notes

Alternatively, name it Roles like in WaveRespawningEventArgs.

hatulaile avatar Aug 03 '25 23:08 hatulaile

Player's role should be set at point of this event triggered (if not then please correct me and ill add it) There is Players property from which you can get their roles. If you wish to make this a dictionary, you can use linq.

davidsebesta1 avatar Aug 05 '25 14:08 davidsebesta1

Thank you, it works great.

hatulaile avatar Aug 06 '25 13:08 hatulaile