- Home /
How to create a stationary weapon FPS controller ?
Hi, i want to create a game where the player can't move and shoots from a stationary MG. Of course i still want him to be able to aim within a certain angle. The MG is mounted and i want to rotate it instead of the camera. I am assuming i change the pivot point to where it sits on the wall but i have no idea how to approach everything else like the fps controller and how to apply the rotation in the right way.
I am thankful for any advice !
Can you maybe give an example picture or game? Is it a 3d person or first person? How do youu want to rotate the player/$$anonymous$$G, with the mouse or keyboard?
Hey mille, For my project, going to be first person looking over a field able to look around with the weapon and shoot moving targets but no need to walk. also I would like this to be mobil app so touch joy stick.
Thank you for any help
Hi W1zzel any luck on this, i am brand new looking to do the same thing ...
Answer by Toretepentakill · May 17, 2020 at 11:30 AM
Hi,
When the player is engaged in the MG you can set the player transform as a child of the MG, stop moving the character from the inputs (mouse + keyboard ie) then move the MG through mouse input. When stopping using the MG break the child-parent relation from player-MG.