Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Where can I find a good solid tutorial on making an "action button-keyboard key" to control everything?

Hello, I'm looking for a specific tutorial or set of tutorials to help me with something I'm trying to accomplish. I'm trying to accomplish setting up a keyboard key either "E", "Space Bar", "Enter". Think of Resident Evil 4 where "A" does everything, or Zelda's "A" Button. It would be the Initiate chat, confirm choice, manipulate objects in the game world etc.

The real end goal in my game is I'm trying to make a switch that the player would hit "A" on the switch would activate causing a nearby platform to lower to fetch a key. The switch would start out un-lit, after the switch is activated it would lit up to show the player it was activated (playing a sound would be great too) I would then want the switch to remain lit and inoperable. I would not want the player to keep activating the switch and lowering the platform ad infinitum. I would prefer a blueprint as I would want to have numerous in game interactable switches or buttons for different things. As I do not know any scripting languages.

It should be noted that I am using the FPS Game Mode with starter Content and ideally I'd prefer instructions based on that. It seems like everyone does third person mode for some reason.

So far I have created a matinee and when the matinee plays my platform lowers but I can't wrap my head around adding the sound or making it a one time switch that activates the matinee event. I imagine at some point in the events I'll need a Branch True or False node but I'm stuck.I'm also brand new to UE4 and the extent of what I know has been 2d drag and drop eventing on RPG Maker Products.

Product Version: UE 4.21
more ▼

asked Dec 06 '18 at 04:37 AM in Using UE4

avatar image

1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

If you haven't already, watch this. At some point he will talk about Interfaces and even implement an interactive door. The short version: you need to create a Blueprintinterface and every object that reacts to your interact button will implement this interface and have some specific logic attached to it. It's a lot to digest tbh, but the tutorial explains everything you need.

more ▼

answered Dec 06 '18 at 05:46 AM

avatar image

4.2k 88 38 153

avatar image TehChad1988 Dec 06 '18 at 04:47 PM

Thanks, I'll check it out!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question