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"

How can I interact with an object once I am in its collision box that I have made?

Hey Community,

So in my game there is a sword. I need to be able to walk to the sword and once I get within a certain range of it (the collision box I made), I should be able to press "E" and then the sword would be destroyed or something. I can't figure out how to make it so that the collision box recognizes that you are in it and that you can press "E".

Thanks for any help

Product Version: Not Selected
more ▼

asked Jun 22 '14 at 08:41 PM in Using UE4

avatar image

7 4 4 6

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

You can use the Event On Actor Being Overlap, this will be called when player triggers and overlap event. So you could have a trigger volume out in the scene and you use that for figuring out if the player is within range to get the sword. From the event, you could "Enable Input", then if you type "E" into the search box you'll see and event for "E", now anything you stem off of that will be called when you hit "E". You might want to consider "Disabling Input" on another Event call On ACtor End Overlap, this way when you walk out from the trigger volume you turn off the ability to hit "E" and have it do anything.

more ▼

answered Jun 22 '14 at 09:28 PM

avatar image

956 136 147 385

(comments are locked)
10|2000 characters needed characters left
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