Announcement
Collapse
No announcement yet.
My E Button doesn't work in my self created actor
Collapse
X
-
Do you have Input enabled for this Actor? Can you debug the Blueprint and look if the "E" press is actually called?
Either by looking if the wires light up or by adding a print message.
If the E Button is not working, you are missing the Enable input. You will want to add a collision to this Actor and
OnBeginOverlap, you enable input and also OnEndOverlap you disable it again.Open for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR
My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
(Including 100+ Pages Multiplayer Network Compendium to get you started.)
-
Like eXi is saying and to add to that:
Input is by default only enabled for the player's controller, pawn and the level blueprint (in that order of processing). For others you need to call EnableInput. It will then receive input before the player controller.Journeyman's Minimap - Available on Marketplace - Forum topic - Video
Comment
-
Add a Collision to the Actor you want to use. Make sure it is big enough for the Character to step into.
Add the OnBegin- and OnEndOverlap Event of it to the Event Graph. For OnBeginOverlap get your
PlayerController and call "Enable Input". For the OnEndOverlap get your PlayerController and call "Disable Input".Open for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR
My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
(Including 100+ Pages Multiplayer Network Compendium to get you started.)
Comment
-
Originally posted by Siengried View Posti don't know how to add the collision...all the on begin overlap i don't know
got tutorials about collision and you may want to watch the basic tutorials of Epic Games Youtube Channel!
https://www.youtube.com/user/UnrealD...tKit/playlistsOpen for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR
My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
(Including 100+ Pages Multiplayer Network Compendium to get you started.)
Comment
-
Sometimes i feel like you are trolling me xD
I said: "Add a Collision to the Actor you want to use." and not to the Character.
Also the "GetPlayerController" needs to be in the "PlayerController" pin and the Target needs
to be empty or self.Open for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR
My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
(Including 100+ Pages Multiplayer Network Compendium to get you started.)
Comment
-
Everything placed into the Scene is at least an Actor! That's why i said Actor.
I mean the object you want to use. The generator.Open for contracted work | C++/BP (incl. Multiplayer) | Tutoring | VR
My UE4 Blog/Page with Tutorials and more: Hit me for ALL the things!
(Including 100+ Pages Multiplayer Network Compendium to get you started.)
Comment
Comment