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"

Picking up the medkit and use it at any time

Hi, I want to make first aid kit which, once picked up by me using the button disappears from the scene and moves to my inventory (as first aid kits will only be displayed as number using the Widget blueprint). Then, using another button at any point durning game medkit will disappear from my inventory and cures me.

Here are my blueprint setups.

Picking up works , but can't use it.

Thanks for any help!

alt text

alt text

alt text

Product Version: Not Selected
Tags:
medkit.png (126.4 kB)
my character bp.png (152.2 kB)
more ▼

asked May 03 '15 at 05:00 PM in Blueprint Scripting

avatar image

risne
21 2 3 6

avatar image ScottSpadea May 03 '15 at 05:29 PM

is Med a type of character?

instead of casting, since you are in the MyCharacter blueprint, why not just access the local health variable?

avatar image risne May 03 '15 at 05:42 PM

Med is the name of the medkit Blueprint. Here in mycharacter defined as a variable.

Yea, you're right. My oversight... I'll try to do it.

alt text

Still.. not working

mychar.png (40.4 kB)
mychar.png (40.4 kB)
(comments are locked)
10|2000 characters needed characters left

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