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

536 B
Raw Permalink Blame History

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:

-- 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