No categories assigned
LUA:IsNight
- Last edited 9 years ago by I need to Update My Profile
LUA - IsNight
Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker
LUA Functions: IsNight()
Checks the zone to see if it is currently night
Syntax
IsNight(param1)
Parameters
- Required - param1 (Zone)
- param1 is the zone to check
Returns
True if it is currently night time
Usage
function hailed(NPC, Spawn)
if IsNight(GetZone(NPC)) then
Say(NPC, "It is currently night")
end
end
This npc will only respond if it is night
Notes
Can only be used on a zone