How to character swap?
I know there are some really bright people on these forums! Alright, so I would like to have my third person character game to be able to switch between three characters. Each character has their own animation blueprint, and character blueprint already set up. I would ultimately like to set it up that two of the characters are AI allies, and the other one would be the controlled character. Each will keep their own stats i.e. health, current equipment, etc. but share the inventory. So does anyone have a good practice to switch the playable character via event or event dispatcher? Would it be better to just change the mesh or the blueprint entirely?
asked Feb 12 '19 at 12:39 AM in Blueprint Scripting
When you have 1 PlayerControlled character and 2 AIControlled characters in the same scene, you may want to do it this way:
In your PlayerController, make a swap event that accepts an AI Pawn or Controller:
Depends on how your camera is setup, your ViewTarget should adjust accordingly or you may have to manually set it. By default in ThirdPerson template, it should automatically.
That's just one way of doing it tbh.
answered Feb 12 '19 at 12:53 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here