1
0
2025-05-20 08:50:00 -04:00

24 lines
536 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

### Function: IsNight(Zone)
***Description:***
Checks if it is currently nighttime in the specified zone. This usually refers to the games day/night cycle.
**Parameters:**
- `Zone`: Zone - The zone to check if the time is night.
**Returns:** Return's true if the current time is dusk/night. Otherwise return's false.
**Example:**
```lua
-- Example usage: On hail tell the user if it is night or day
function hail(NPC,Spawn)
if IsNight(GetZone(NPC)) then
Say(NPC, "It is night!")
else
Say(NPC, "It is day!")
end
end
```