Skip to content

GenerateBasePrefabCommand 1.0.0

Latest
Compare
Choose a tag to compare

This mod adds the generatebaseprefabcode command. When this command is used while inside of a player-made base, the mod will generate source code for async prefab creation of the base that you are in, so it can be registered as a CustomPrefab and turned into a prop that is placed in the world.

All base pieces will call a StripComponents(...) method which is NOT defined, because it is very specific to your project. Here is the specific code I use to implement it: https://pastebin.com/ZAX9ay9F.