. . . Posted July 5, 2024 Share Posted July 5, 2024 For example if I want to disable the Pig King from spawning in the world or hermitcrab_01 and stuff like that how would I achieve that? Any help is appreciated! Link to comment https://forums.kleientertainment.com/forums/topic/157973-how-can-i-disable-a-static_layoutsetpiece-from-spawning-in-the-world/ Share on other sites More sharing options...
. . . Posted July 8, 2024 Author Share Posted July 8, 2024 bump Link to comment https://forums.kleientertainment.com/forums/topic/157973-how-can-i-disable-a-static_layoutsetpiece-from-spawning-in-the-world/#findComment-1733642 Share on other sites More sharing options...
alainmcd Posted July 8, 2024 Share Posted July 8, 2024 You could try to set the amount to 0 for all rooms that use that layout: -- In modmain.lua: local Rooms = require("map/rooms") local PigTownRoom = Rooms.GetRoomByName("PigTown") PigTownRoom.contents.countstaticlayouts.PigTown = 0 local PigCityRoom = Rooms.GetRoomByName("PigCity") PigCityRoom.contents.countstaticlayouts.PigTown = 0 Haven't done much testing with this. 1 Link to comment https://forums.kleientertainment.com/forums/topic/157973-how-can-i-disable-a-static_layoutsetpiece-from-spawning-in-the-world/#findComment-1733814 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now