Hello, I’m shooting a sphere using the player Controller BP, that then shoots out of my Barrel_01_PawnBp. Im then change into Barrel_02_PawnBp but everytime I shoot it still comes out of Barrel_01.
How do I change the player controller to a new pawn? / or is there a better way?
The player controller system for Unreal seems a bit confusing imo. The way they seem to describe it is like the spawned character or pawn would be like the flesh, and the “player controller”. would be like the soul or spirit of the player representing the will of the player controlling it. Not the actual “gamepad” that is connected. So that spawned actor has to be possessed by a controller.
In practice what seems to happen is this, when you start Unreal, it detects every single gamepad plugged in an assigns it a device ID starting with zero. Hence everytime you reboot you may get new device ids regardless if you knew it was same physical gamepad in actual 3d real world space. I do kindly think Windows should have a way to hard lock a controller to an ID somehow but to my knowledge there is no way to do that.
In this case you describe it kind of sounds like a possession situation. Sometimes you can hard assign the controller ID in the blueprint’s settings. This way I would know its trying to use device 0 , device 1 etc etc for the input. You also need to check if it auto possesses on drag n drop into the UE world or not.