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"

I can't set Float to 0 with a +0.2 Timer

alt textI'm trying to make a float that takes 5 seconds to get to a value of 1. For some reason, I am unable to reset this however leaving me with a value of 1 as soon as the initial 5 seconds are up.

Product Version: UE 4.15
can'treset.png (106.9 kB)
more ▼

asked May 11 '17 at 09:15 PM in Blueprint Scripting

avatar image

1 1 2

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

2 answers: sort voted first

unless you have a branch somewhere to the right on your screenshot, with a 'Set Actor Tick Enabled' set to false, your 'Forward thrust Recharge' will be set to 1 every frame. So at one point the flaot actually is 0, but not when you look it up ;)

You should set your timer count to 0, not Forward thrust recharge. It might be even more efficient to stick a branch directly on the event tick with a condition asking if time count >= 1 and set timer count to 1 if it's true. This way it won't calculate and set the other varialbes after that.

more ▼

answered May 11 '17 at 11:18 PM

avatar image

240 9 13 23

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

dont u just have to set the variable to 0 at some point?

more ▼

answered May 11 '17 at 09:36 PM

avatar image

51 7 11 12

avatar image DataCluster May 11 '17 at 09:39 PM

The "Input Action Thrust" is supposed to do that when activated "F key", it just doesn't for some reason. I've also tried adding "Set" to various other things, nothing sets it back to 0.

avatar image Jeremy_drn May 11 '17 at 09:42 PM

maybe just Call timer by Custom event instead of your Version of a timer.

(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