Effect.setTimeOfDay
Sets an effect to be active during specific period of the day / night cycle.
Kind: Function
Environments: Game
Game
effect:setTimeOfDay( enabled, start, end, inversed )
Availability: Client only
Parameters:
| Name | Type | Description |
|---|---|---|
effect |
Effect | The effect. |
enabled |
boolean | Time of day enabled. |
start |
number | Start normalized time of day. |
end |
number | End normalized time of day. |
inversed |
boolean | If true, period between start-end becomes inactive time. |