User Tools

Site Tools


script:world_event:isgodmode

For example:

–Determine whether it is multiplayer creative mode or gameplay editing mode

local result=World:isGodMode()
if result==0 then--If it is multi-person creation or gameplay editing
	Chat:sendSystemMsg("Currently in multiplayer creation or gameplay editing mode!")
else--if not
	Chat:sendSystemMsg("Currently not in multiplayer creation or 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/isgodmode.txt · Last modified: 2024/05/27 13:44 by don