script:world_event:gethours
For example:
- Parameters & Types: not
- Return value and type:
- code:number succeeded (ErrorCode.OK) ErrorCode
- hour: the number of the current hour
- The main purpose of this method is: Get the current time of the game (h)
- Specific use cases are as follows:
- -Get the current time
local result,time=World:getHours() --Display in chat box Chat:sendSystemMsg("Now is the "..time.." point!")
If you have any questions about Developer Tools, feel free to join our official discord server Mini World Global DEV discord
script/world_event/gethours.txt · Last modified: 2024/05/28 03:51 by don