Im working on a game where i want to enter and leave a turret (the turret a new pawn that i´mpossessing).
my problem here is that when i want to controll the turrets rotaion with WASD it does not do anything and as the standard player character i can´t move anymore even though i am not possessing the turret pawn.
i hope that you know what i mean and it would be awsome if someone can help me
Okay, so you are running inside of a turret (and possessing the turret). This turret then moves correctly while you are in it.
But, when you exit the turret (and go back to possessing the main character) your character has stopped working?
I guess you could try destroying the character actor once it is no longer possessed and just spawning a new one when you leave the turret again.
Edit: I reread some of your posts. It seems like you are trying to use both the character’s movement and the turret’s movement at the same time? I don’t think you can do that because you can only possess one thing at a time with a player controller. Put all the movement you need for the turret inside of the turret (including copy of character movements, if needed).
Do you have WASD set up for the turret pawn as well?
Usually movement is set up in the character BP. So, if you stop possessing the character you would lose access to that movement.
Thank you for the quick reply,
I added an input node (basic W-key) and the turret works how it is supposed to work but the movement of the playercharacter does not work anymore. I think it the reason is that the turret and the playercharacter got the same input and are “blocking” eachother. i hope that helps you
Nearly. The turret is a pawn with a collision box and when im in that box i can press E and that changes the Pawn. now i want to rotate the turret wit wasd and it works.
The Character movement is not working when you start the game.
yes exactly. i wanted to toggle between the both inputs.
but you know what… i just realized i scripted everything in the same playercontroller and not in to the different pawns. It works perfectly now
Still thank you very much for your responses. i hope i did not waste your time