Jump to content

starts with FreeBuild enabled


Recommended Posts

good evening everyone

 

I have seen a mod named "Map Revealer" by @Kuloslav, which reveals the whole map each time you start a game - without the need for console command for Mini Tools.

 

I want to do the same with the FreeBuild.

 

here is what I have done;

 

function Freebuild()
local inst = GetPlayer()
GLOBAL.RunScript("consolecommands")
 
inst:DoTaskInTime( 0.001, function()
 
if inst then
if inst.components.builder.freebuildmode then
inst.components.builder.freebuildmode = false
else
inst.components.builder.freebuildmode = true
end
 
inst:PushEvent("unlockrecipe")
end
end
 
however, the game crashes.
and I don't know what to be done.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...