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 check if an item is in the player inventory?


 I am building a 4 person co-op shooter. I am trying to make a quest notification go off as soon as the player picks up a quest item. I've tried many ways and got so many errors, this is giving me a head ache. 

example of what i want

Player follows marker to quest item > player picks up quest item > event checks if item is in inventory> if true (Play quest update) > else do nothing

Product Version: UE 4.20
example.png (252.3 kB)
ex-2.png (332.6 kB)
errors.png (43.5 kB)
more ▼

asked Dec 12 '18 at 04:45 AM in Blueprint Scripting

avatar image


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

1 answer: sort voted first

This is how I do it. player hits "f" to interact with quest actor with sphere trace. Player has reference to item set by this. Uses reference to call custom event on the quest actor. Quest actor fires off some replicated functions that are on the game state. game state updates all players on what the mission is.

From the look of your images it looks like you are trying to do this in the level blueprint. I feel this would be done more easily in the game state

alt text

alt text

example1.png (156.5 kB)
example2.png (108.1 kB)
more ▼

answered Dec 12 '18 at 05:52 AM

avatar image

6 2 4

(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