keep a button pressed to rotate an object
hello, im doing a "virtual showroom" and i have a machine i want the player to be able to rotate. I have a player who can walk around. I have a always facing the camera text with the button prompts. Now i want to Press Q and E to rotate the object i have in the middle of the room in each direction. but only to rotate when the button is pressed. when release the rotation must stop. I tried a couple of variants but to no avail. I tried with a timeline but it executes some degrees rotation on each press. Not by holding it.
asked Dec 05 '18 at 07:25 AM in Blueprint Scripting
You can add a Rotating Movement component to an actor (it has to be a blueprint, even if there is no other functionality), and on key press you set the rotation rate to the needed value, and on key release — to zero.
Follow this question
Once you sign in you will be able to subscribe for any updates here