First I'd like to say Im new to Playmaker.
Im using the sample character controller provided which provides movement, but no mouse look. What Im trying to achieve is a mech style game-play with a torso that rotates. I would like to have it work like a typical character controller, where you look is where you're going to move, etc. But if you hold down the middle mouse button, the torso will rotate up to a fixed angle along with the camera. When you un-click the mouse button, it will snap back to the original position with a nice tween. So you're headed in one direction, and when you click and hold the mouse button your torso with the guns and camera will be able to look/shoot in various directions, but continue along the same direction as before you held-down the button.
Right now it sort of works. I have 5 meshes: a cylinder, legs, torso, gun, head. The cylinder is the character controller with the sample scripts attached. That has the forward, back, and strafing movements. That works.
The gun and head is parented to the torso, along with the camera. Attached to the torso is 'Mouse Look'. So the rotation of the torso is correct. So now I can move in one direction and look anywhere. Although the mouse look (Y axis) is inverted, and the only way I can seem to change that is within the input manager.
- I want to add an action; 'Get Key Down' to allow the torso to move independently when a key is pressed. How do you link that Action with the 'Mouse Look' Action?
- And how do you allow 'Mouse Look' to work when you're not pressing the mouse button, so you want to be able to control the direction of the mech?
Any thoughts or suggestions would be much appreciated! Thanks!!