Please tell us about the bug you want to report:
Setting/updating spawnable sync value via custom trigger animation events along with interactable script detecting custom trigger will prevent the rest of the sync values and animator from functioning properly.
Please tell us how it happened:
On a spawnable prop I set a few spawnable sync values along with a interactable script that uses set spawnable value. These all control animator parameters and work just fine until I add a custom trigger. When custom trigger is set to add to a spawnable value via an animation and network players are present things break.
Please tell us everything that could help us reproduce the issue:
Add a pickup object script set to disallow theft, box collider set to trigger, spawnable script with 3 sync values set with update type none and method override along with a animator with float parameters.
Now add a interactable script with the following:
- on custom trigger with action type set spawnable value set to update method add linked to a parameters in the animator.
- On input down set with filter held any interaction input no modifier and action type set spawnable value and another parameter in the animator set to update method toggle.
- On interact down set with set spawnable value with update method override and value 1 linked to the last parameter animator.
- On interact up set with set spawnable value with update method override and value 0 linked to the same parameter above.
When in a instance with other players spawn the prop and pick it up. Next attempt to use the input down input key along with the interact down and up triggers. The prop's animator should end up triggering wrong.
I've noticed when custom trigger is set to something other then set spawnable value it does not break the animator/sync values.
Game Version: (this is visible in the home view of the game UI)
2022r165 Experimental 3
Report Code (this can be generated in the game settings under Support -> Report a bug)
(unable to generate)