How do you give AI players a PlayerState?

anonymous_user_4e0518b6
Wed, 04 Feb 2015 21:06:19 +0000
Blueprint

I would like to add bot players to my game. Spawning an AIController and making it possess a pawn is not a problem, but how do you give it a PlayerState?

There is no way to set a controller’s player state, and if you spawn an AIController, it won’t get any. Without a player state, bots are practically useless - I want them to have scores, names etc. like normal players.

I would have expected that there was something like CreatePlayer just for bots, but it appears that there is no out-of-the-box handling for bots whatsoever. Or, at least, none of it is exposed to Blueprint (e.g. InitPlayerState is not).

How can I get proper bot players to work using Blueprint?

14 posts - 11 participants