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"

How do I have pickups not spawn on begin play if they have already been picked up by the player

My current set up - is on begin play -> checks my character's inventory - which has been saved to a savegameBP -> gets all actors of pickup class -> checks names to see if any of them match my character's inventory items -> if they do -> Destroy item

Is this the right way to do this for items that are placed in the world as pickups after they have been picked up?

Does anyone have any experience with this because all the tutorials I've seen - the character's info get's saved but not too many have info on whether or not something Should exist in the game?

Should I have an item spawnerBP maybe? To have it so that "if Item exists in inventory do not spawn item" Because all ive been doing is placing the items in the world.

Product Version: UE 4.14
Tags:
more ▼

asked Mar 29 '17 at 06:38 PM in Blueprint Scripting

avatar image

Ghostblades
114 16 24 39

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

1 answer: sort voted first

I have set up a pickup manager that checks my inventory and if the item is in my inventory it doesn't spawn in - so this is working now

more ▼

answered Apr 18 '17 at 01:13 AM

avatar image

Ghostblades
114 16 24 39

avatar image JamesWolfwood May 10 '17 at 09:59 AM

Hi There, GhostBlades. I'm working on the same things for my game but I'm having lots of issues trying to keep the picked up item destroyed upon game load. Would you mind sending me some screenshots over of your set up so I can try to get it to work on my project Please?

(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