Hi!
So i have a scene with 3 controllable player...i have interactions with them (you have to give an object to one player and another to the second player etc...) all work perfectly at the beginning ,i can give objects and switch character with buttons but my problem is when i give an object to a character (especially the default player) and then switch to this character, it doesn't follow sorting map anymore ... dont understand why...
Comments
For us to understand why, you will have to provide more information so that we can see what is going wrong. For starters, in which versions of AC and Unity are you working with, and on what platform?
If you're using player-switching, I'm assuming that you have each of the non-interactive Players set up as NPCs that are then "swapped-out" with actual Player objects when they become interactive. Is that correct?
Please show screenshots of the way your scene is set up, the way your Players are set up, and list the exact steps you take for the problem to occur. We will need those in order to attempt a recreation of the issue.
In the player's Follow Sorting Map component, do you have Follow default Sorting Map? checked and a Default Sorting Map assigned in the Scene Manager?
Sorry for the obvious questions, but the error message that's showing should only be doing so if either of those things aren't so.
But your "giving object" ActionList doesn't look right to me. You begin with a Player: Switch Action that redirects to Action 1 regardless of it's outcome. Also, if Actions 2 and 4 are just intended to remove the Biere item from the current player's inventory, the Affect specific player? checkbox shouldn't necessary - and you can just use one Action (also eliminating Action 3).
You say that this happens "especially" with the default player. Does that means that sometimes it doesn't, and it works as intended? What are those circumstances?
You can PM me privately if you'd like a WIP package to test - though as it's still WIP I wouldn't recommend using it in a production.
Thanks for your patience.