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"

Weapon Auto Pick-Up Upon Collision

Hello,

I'm starting a project and am trying to create all of the basic functionality of my game. One of the main aspects is a weapon system that auto-equips weapons as you walk over them, replacing the current with the new. Only one weapon to be held at a time.

The plan was once I got the weapon to despawn I would then begin working on assigning it to a socket on the character, but unfortunately I'm having trouble even getting this started. I followed this tutorial exactly (it's literally a 3-piece blueprint class, kind of impossible to mess it up), yet when I walk over the weapon nothing happens. The only thing I can think of is that this tutorial came out just 1 day after UE4 was released back in 2014, so maybe things have changed since then that are required?

https://www.youtube.com/watch?v=piqrHiypJeE

I made sure that both the static mesh (weapon) and the character skeletal mesh (in the "sidescrollercharacter" blueprint) have "Generate Overlap Events" enabled from their collision settings. What else could it be?

Product Version: UE 4.19
Tags:
more ▼

asked Jul 12 '18 at 09:02 PM in Using UE4

avatar image

Skisma
63 8 12 15

avatar image Evan.Doody Jul 12 '18 at 09:36 PM

It seems like everything in that tutorial should work the same as it does now. Does the mesh you are walking over have a collision mesh by default? May be worth trying adding a Box collider to the pickup object and see if that fires correctly.

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

0 answers: sort voted first
Be the first one to answer this question
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