Cannot get mouse inputs to work
Hi all. I have watched numerous tutorials on player input, searched various posts on the forums, and cannot seem to find something that works.
Basically, I am trying to have a vehicle that accelerates when the mouse-wheel is scrolled down (like one mouse wheel click is 10% acceleration, and 10 clicks is full acceleration -- like an RPM gauge), and vise versa with mouse wheel up. And also trying to get the left/right mouse movements to yaw the vehicle side to side while moving.
I can get the mouse to work for looking around, but that's it. I can't get any of the buttons to do anything, even at a very basic level. Here's the current setup:
But I have tried numerous other setups as well, such as the one from this thread (which doesn't even work for me): https://answers.unrealengine.com/questions/109252/setting-mouse-buttons-as-movement.html
I would greatly appreciate any assistance.
asked Sep 08 '15 at 06:35 PM in Blueprint Scripting
So after stumbling upon this thread I was able to get everything working.
First of all both mouseWheelup/down should be scaled to +1 in most instances.
Secondly, can you show us the blueprint youve created thats not working?
Youll probably want something like MouseWheelUp -> IncrementInt(setSpeed)
Make setSpeed an integer value and then in eventTick take setSpeed 10 and then use it to move the vehicle using something like addLocalOffset with the return of setSpeed*10 into the float input of a getForwardVector float
Simple and effective, should get you started. Be careful with axis scale if they are set to -1 you sometimes need to negate it so you get positive, or change the scale to positive.
Hope this helps Don't forget to accept an answer that best clears your question up or answers it so when the community finds your question in the future via search/google they know exactly what you did to fix it/get it going.
answered Sep 08 '15 at 06:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here