Jump to content

Recommended Posts

Hi all,

New here, I am currently writing a rather basic mod, but can't seem to find a full documentation no Don't Starve, I have read a lot of the tutorials though :)
Anyway, I need to find out how I can remove an existing item in the world please? Basically the opposite of spawn. Is it possible? If so, how?

Hi all,

New here, I am currently writing a rather basic mod, but can't seem to find a full documentation no Don't Starve, I have read a lot of the tutorials though :-)

Anyway, I need to find out how I can remove an existing item in the world please? Basically the opposite of spawn. Is it possible? If so, how?

AddPrefabPostInit("prefabnamehere", function(inst)inst:Remove())

 

in modmain.lua should do it. May lead to unexpected behavior.

I plan to do it in coding :-)

Thanks debugman18! :grin: Is there a way to get a list of all the items so I can sort through it though please? [sorry and thanks]

all the prefabs are in the files here C:\Program Files (x86)\Steam\steamapps\common\dont_starve\data\scripts\prefabs (for the steam one anyway)

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...