Skip to main content

Functions

Narrative Sky features a bunch of functions that allow you to control Blueprints based on the time.

Video​

Wait Time Range​

This latent node allows you to set a time start and end, with event driven call backs so you aren't having to tick or manually check the time.

wait-time-range.webp

Inputs​

NameTypeDescription
Time Startint32The start time of the range.
Time Endint32The end time of the range.

Output​

NameTypeDescription
On Time Range StartExecWhen the time has entered the provided range.
On Time Range EndExecWhen the time has exited the provided range.
EventTimefloatThe current time.
TimeAtFirefloatThe time it was when the event has fired.
TimePassedDeltafloatThe delta time currently.
FiredFromAdvancedTimebooleanWhether or not the AdvancedTime command was used to trigger it.

Wait Sunset And Rise​

This latent node allows you to be informed when NarrativeSky has started Sunrise and Sunset.

Great for making lights or other events that come on at nighttime and shut off automatically.

wait-sunrise-and-sunset.webp

Output​

NameTypeDescription
On SunriseExecWhen the time has passed the Sunrise time.
On SunsetExecWhen the time has passed the Sunset time.
EventTimefloatThe current time.
TimeAtFirefloatThe time it was when the event has fired.
TimePassedDeltafloatThe delta time currently.
FiredFromAdvancedTimebooleanWhether or not the AdvancedTime command was used to trigger it.

Wait Time Of Day​

This latent node allows you to be informed when NarrativeSky has reached a specific time.

Inputs​

NameTypeDescription
Timeint32The time to be notified by.

wait-time-reached.webp

Output​

NameTypeDescription
On Time ReachedExecWhen the specific time has been reached.
EventTimefloatThe current time.
TimeAtFirefloatThe time it was when the event has fired.
TimePassedDeltafloatThe delta time currently.
FiredFromAdvancedTimebooleanWhether or not the AdvancedTime command was used to trigger it.