How to change cameras and controls when interacting with an object?
Hello everyone !
I've been trying to make a class bluprint for a deus ex type keypad, for training purposes...but I got stuck when trying to actually interact with the thing..
I would like to change the camera so it focuses on the object itself, so I tried various methods, including that https://answers.unrealengine.com/questions/39116/switching-between-multiple-cameras-in-blueprints.html but the Set view node is not even present in my actor class BP, I only saw it in a character BP (maybe I need to script that in the character and reference it in the object though ...).
I also want to pause the character when I'm interacting with the keypad and be able to punch in codes and stick a user interface on it...but still haven't found answers about that either.
Has anyone ever tackled this type of interactive objects and could share some tips and tricks ?
Thank you !
asked Oct 30 '14 at 11:51 PM in Blueprint Scripting
to pause the character, use setCinematicMode().
to set the camera up, inside the pickup, you can cast from the overlapped actor to a pawn, then get its controller, cast it to your custom player controller, and dragging from a player controller node should give you access to setViewTargetFromBlend().
if you make a custom movement component for your character, you can add a custom movement state. instead of walking, swimming, or flying, this movement state could be called "keypadding", and it would be used to connect input events to blend nodes in the character's animBlueprint.
answered Nov 01 '14 at 08:15 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here