Unable to "Zoom In" through input

A newcomer here, i tried to implement a camera zoom in/out BP using key inputs as triggers and example top down project that comes with UE4 as a base. However, whenever i press keys, events seems to be not firing at all. I went through my BP numerous times but i just cant seem to find out root cause. Can anyone please enlighten me?

EDIT: i realised that top down template was using something called “myController”, a custom controller class, to move character. Upon switching back to default playerController, zooming in works thus i suspect that myController is somehow blocking input from being captured by myCharacter BP. Anyone has any idea how to make both myController and myCharacter to play nicely together?

I had a problem related to this where I could not use a subtract node to zoom in and out. I had it add a negative number instead. Not sure why.

Hey Haktae,

If you’re using a Controller, you need to make sure Controller isn’t disabling input for Character. If you open MyController and look at Defaults, you’ll see a Block Input checkbox under Input section. Make sure that isn’t checked if you want to use any Inputs in character’s Blueprint.

Note that Clamps you’re using in Blueprint are going to need some adjustment. Currently you’ll zoom in super close, and there will be a minimal difference between zoom levels. You might also want to add a check to see what zoom level player is already at before allowing a change.

Hope that helps!

Yep, it works now! Many thanks!