script:world_event:iscustomgame
For example:
- Parameters and types: None
- Return value and type:
- code: number Success (ErrorCode.OK) ErrorCode
- The main function of this method: Is it a custom game?
- The specific use cases are as follows:
–Determine whether it is a custom game
local result=World:isCustomGame() --- Get the results for comparison if result==0 then--if it is customized Chat:sendSystemMsg("This is a custom game!") else--if it is not customized Chat:sendSystemMsg("This is not a custom game!") end
If you have any questions about Developer Tools, feel free to join our official discord server Mini World Global DEV discord
script/world_event/iscustomgame.txt · Last modified: 2024/05/28 00:01 by don