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 to have a volume update every sec?

I have this Volume that calls to health and increases it by 10 on each overlap. What I want to start happening is for the health to update every second the pawn ( Cube ) is inside the volume? What would be the best way to implement this ?

alt text

thanks- Percy.

Product Version: UE 4.13
Tags:
screenshot (8).png (256.7 kB)
more ▼

asked Sep 11 '16 at 02:03 AM in Blueprint Scripting

avatar image

MadkingPercy
18 3 6 9

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

2 answers: sort voted first

Use something called a gate or set a boolean isInside to true on BeginOverlap and to false on EndOverlap. Then use that to guide the flow from your tick event.

Use the boolean you set above in an branch node and simply set the true execution pin to lower the health every tick.

more ▼

answered Sep 11 '16 at 03:23 AM

avatar image

NoobsDeSroobs
2.7k 108 36 180

avatar image MadkingPercy Sep 12 '16 at 01:22 PM

Thanks, but I don't quite know what you mean, could you take a screenshot, please?

avatar image NoobsDeSroobs Sep 12 '16 at 03:12 PM
avatar image MadkingPercy Sep 12 '16 at 03:33 PM

Thanks again, but that just seems to stop the script from doing anything?

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

What you should do:

On Begin Overlap - Start Timer - Looped, time = 1sec - Do whatever you want on custom event

OnEndOverlap

  • Clear timer

Use this to familiarize yourself with them: https://docs.unrealengine.com/latest/INT/Gameplay/HowTo/UseTimers/Blueprints/

Good luck!

more ▼

answered Sep 12 '16 at 05:50 PM

avatar image

VictorBurgos
2.4k 61 27 115

(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