Hello, I'm doing an NPC follow the player to a base when the npc is inside the base stops following the player and Spawn a new player character that is the same as the NPC but with the players scripts. My problem is how to add this new player to the player list in the Settings > Characters so i can switch to this new player character?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
I'd recommend using a Player the whole time - rather than swapping out an NPC for a Player.
Any Player listed in the Settings Manager's "Characters" panel - but not the currently-active Player - will be treated as an NPC. You can have them follow the active Player etc as you would any NPC.
To convert an NPC into a Player, click the cog icon in their Inspector and choose Covnvert character type.
Ok, thank you Chris.
Hello @ChrisIceBox now i'm using other player but it wont follow the active player. Also i'm using a Custom script for move the character with Invector, but i'm setting to use this when you are not the active player:
acCharacter.animationEngine = AnimationEngine.Mecanim;
acCharacter.motionControl = MotionControl.Automatic;
When referencing Players listed in the Settings Manager, check the Action's Move inactive Player? box, and then select Player_03 from the dropdown list - rather than assigning the prefab directly.
If there are still issues, try it without any Invector components so that we can rule out there being an unintended conflict.