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"

Radius Heath Regeneration using an item.

Hi I am new to scripting and thought blueprint would be a good start for me. I have created a basic health system that uses the delta seconds to regenerate the players health but i would like to have it when player enters the radius area of an health object, the players health will regenerate at a faster rate than outside the radius. I am at a loss.

Any help or tips would be greatly appreciated.


Product Version: UE 4.7
more ▼

asked May 29 '15 at 07:47 AM in Blueprint Scripting

avatar image

1 2 3

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

1 answer: sort voted first

Add a Sphere component and check if player BeginOverlap the sphere, then you just add an extra regenerate value to player, and if player Endoverlap you just minus that value.

more ▼

answered May 29 '15 at 08:00 AM

avatar image

Duncan Dam
3.1k 121 50 164

avatar image kieren.o May 29 '15 at 08:39 AM

I thank you for your answer but i am sorry i am not exactly sure what you mean. I am new to blueprint, i normally create the assets.

avatar image Duncan Dam May 29 '15 at 08:51 AM

oh ok, i don't have time to create the screen shot right now, but what you can do it try the shooter game example, they have health pickup and ammo pickup blueprint. In shooter game when you walk over the thing will be destroyed and you gain some health/ammo. Instead of that, you can make the sphere component in pickup larger, and don't destroy pickup when you walk in the sphere, instead increase the regenerate.

avatar image kieren.o May 29 '15 at 09:06 AM

Ok, i shall give it a go. Thank you for your help i will re-comment if i have a problem.

avatar image kieren.o May 29 '15 at 09:59 AM

it looks like the shooter game example uses c++ and the pickup blueprint is inherited from c++ file

avatar image Duncan Dam May 29 '15 at 10:08 AM

just found very fast tutorial one for you, https://www.youtube.com/watch?v=2d-GDNWwn-4

Modify the pickup same way like in my previous comment

avatar image kieren.o May 30 '15 at 12:20 PM

Thank you for your help. I was still lost at first then I had a look at the UMG inventory from epic and found the fire blueprint worked exactly the way I wanted it to work. I had been trying for at least a week to figure it out. Thank you. So much

(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