x

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"

Load Level when in trigger and pressing action key

Hello! I'm trying to simply set up a load level blueprint on a door and all I want it to do is load the level when the player character is in the general vicinity of the door. I'm not 100% used to the node-based scripting as of yet and I may have (or may be making) a very simple mistake. Thanks for anyone helping!alt text

Product Version: UE 4.19
Tags:
screenshot-142.png (255.1 kB)
more ▼

asked Jun 25 '18 at 11:15 AM in Blueprint Scripting

avatar image

Negative Infinity
5 1 2

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

1 answer: sort voted first

you need to better define your script, for instance if its your player that you want to be triggering overlaps then you need your script to reflect that. to do this i would use the get player character node, the == node, and a branch. you could also do this with a cast but using the == method is a little more flexible. ok so to set this up connect the other actor pin to one pin on the == node, then connect the other pin to the get player character node. the output of the == node should then be connected to the branch, then connect the branch true to the rest of your script.

alt text

capture.png (166.5 kB)
more ▼

answered Jun 25 '18 at 01:58 PM

avatar image

ThompsonN13
10.1k 33 9 23

avatar image Negative Infinity Jun 25 '18 at 10:29 PM

It would appear that it isn't detecting when I press the button for some reason. I have the action key set up in the Input for the project settings but it won't pick up me using it?alt text

screenshot-143.png (265.4 kB)
screenshot-144.png (154.4 kB)
avatar image ThompsonN13 Jun 25 '18 at 10:45 PM

go into your door bp and click the class defaults button at the top, then in the details panel look for the input section and the auto receive input option, set auto receive to player 0. also make sure that you are not using that button input for anything else that could be overriding this bp. for instance you could have another bp that uses the same key and if consume input is checked then the one with priority would use the input before any other bp

avatar image Negative Infinity Jun 26 '18 at 02:33 AM

This worked! Thank you so much! I had no idea that was an option. It was something simple... Thanks again for helping me through this. :)

(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