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"

Event tick_Custom Event , Once

Hey, im try to make day/night street lamp cycle

im start from event tick get the float value from my sun BP ,Time of Day (float) represent time 0000 too 2400

i got custom event called Lights On/Off with exec Toggle Visibility

I would like to run once my event when float is 600 and second run once same event on float 2000

so when float=2000 lights on when float=600 lights off and loop


alt text

alt text

Product Version: UE 4.15
Tags:
1.jpg (46.2 kB)
2.jpg (83.2 kB)
more ▼

asked Apr 29 '17 at 08:25 AM in Blueprint Scripting

avatar image

davidgutjar
10 2 4 7

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

4 answers: sort voted first

only this option working . but this its correct ?

alt text

111111111111.png (201.1 kB)
more ▼

answered Apr 29 '17 at 03:02 PM

avatar image

davidgutjar
10 2 4 7

avatar image Two-faced Apr 29 '17 at 03:16 PM

Are you sure your time is changing by 1 every frame?

avatar image Two-faced Apr 29 '17 at 03:17 PM

And by the way your variant is quite good. Use that.

avatar image davidgutjar Apr 29 '17 at 03:23 PM

okay thank you

avatar image Two-faced Apr 29 '17 at 03:28 PM

Glad I could help you!

avatar image Two-faced Apr 29 '17 at 04:04 PM

Hm ok)))))

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

So whats the problem. Like do you not know how to choose the 600 or 2000 if thats the case then you can use a switch statement and do

alt text

untitled.png (68.7 kB)
more ▼

answered Apr 29 '17 at 09:42 AM

avatar image

Rishabhabhani
3 1 2

avatar image davidgutjar Apr 29 '17 at 09:59 AM

why you use a int not float from bp?

avatar image Rishabhabhani Apr 29 '17 at 03:19 PM

didn't notice that. anyways, I have given you a general solution, you can definitely use float instead of int. but make sure you give the exact value of a float or else instead of == use nearly equal node

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

use the ....do once... node

more ▼

answered Apr 29 '17 at 01:07 PM

avatar image

philip robe
16 2 5

avatar image davidgutjar Apr 29 '17 at 01:10 PM

ok but how reset since still time is ticking ?

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

More elegant option IMO))

alt text

more ▼

answered Apr 29 '17 at 01:34 PM

avatar image

Two-faced
860 31 13 48

avatar image davidgutjar Apr 29 '17 at 02:59 PM

its not workingalt text

2222.png (145.0 kB)
(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