Spawning ID card and PDA is easily breakable and kicks client when it happens #1136
Labels
Bounty
Tasks with a monetary reward.
Bounty: 40 dollars 💰
Value of the bounty. Do not put this tag without the bounty tag.
Bug: Confirmed
Bugs that have been confirmed by another contributor.
High Priority
Life or death people, lets go!
Role
everything related to roles
Milestone
Summary
While messing around with adding items, I had to reload the asset database, and I spawned with some cans in my inventory instead of the pda and id card.
Current Behavior
Currently, pda and idcard are references in the RoleData scriptable object, and must be set in editor. The issue with that is, it doesn't update when modifying the asset database, it therefore points to another item, different from the one intended.
This can lead to client or even host being kicked and producing a hard error to understand, that's why I consider fixing this high priority. In general, avoid storing a given value of an itemId or any other Id from other databases, those ids are bound to change constantly.
Steps to Reproduce
The text was updated successfully, but these errors were encountered: