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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How can I allow the player to 'pick up' money?

I am trying to set up a money system in my game.

I have imported a static mesh and then created a blueprint from it. I set up it's collision to allow for overlapping and programmed it to add to a variable and then destroy itself when the player runs over it. Only it doesn't work, for some reason. Any help would be appreciated. I have attached a screenshot of the blueprints of the mesh.

Product Version: UE 4.7
more ▼

asked May 24 '15 at 01:33 PM in Blueprint Scripting

avatar image

5 1 2 4

avatar image SolarVelocity May 24 '15 at 02:08 PM

What part isn't working? Does event fire? Does money get incremented? Dies the message get displayed?

avatar image Amakas May 25 '15 at 04:23 AM

The 'Begin Overlap' event doesn't fire at all.

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

1 answer: sort voted first

your pickup is paying itself. use the OtherActor reference, cast it to your character type, and set the character's money variable, instead of the pickup's money variable.

more ▼

answered May 24 '15 at 04:54 PM

avatar image

9.6k 319 205 449

avatar image Amakas May 25 '15 at 04:24 AM

Thanks, fixed that. Now I just have to get the event to fire; I don't see the reason why it doesn't.

avatar image ScottSpadea May 25 '15 at 08:08 AM

check the objects collision. the money pickup should have a box or sphere collision component as its root component, and its collision setting should be set to overlap pawn and ignore all other types.

(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