Jump to content

Recommended Posts

As an experiment, I am trying to manually spawn boons, via this code:

local function AddBoons(level)	local Boons=require("map/boons").Sandbox	local BoonsLayouts=require("map/boons").Layouts	for i=1,10000 do		AddSingleSetPeice(level, "map/boons")		print("Added set piece #"..i)	endendAddLevelPreInit("SURVIVAL_DEFAULT", AddBoons)

Unfortunately, AddSingleSetPeice cannot be referenced from outside of worldgen_main.lua, so how would I do this? Can I?

Link to comment
https://forums.kleientertainment.com/forums/topic/58371-manually-spawning-boons/
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...