User Tools

Site Tools


script:world_event:isgamemakermode

isGameMakerMode


  • Parameters and types: None
  • Return value and type:
    • code: numberSuccess (ErrorCode.OK) ErrorCode
  • The main function of this method: Editing mode of self-made gameplay
  • The specific use cases are as follows:

Determine whether it is gameplay editing mode

local result=World:isGameMakerMode()
if result==0 then--If it is gameplay editing mode
	Chat:sendSystemMsg("Currently in gameplay editing mode!")
else--If it is not gameplay editing mode
	Chat:sendSystemMsg("Currently not in gameplay editing mode!")
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/isgamemakermode.txt · Last modified: 2024/06/01 05:12 by don