CountNoobula Posted September 27, 2013 Share Posted September 27, 2013 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? Link to comment https://forums.kleientertainment.com/forums/topic/28248-helpremoving-item-in-world/ Share on other sites More sharing options...
Neosaurus Posted September 27, 2013 Share Posted September 27, 2013 Theres a command for that, but my mind ceases to work at weekends. ( I can't remember it ) Link to comment https://forums.kleientertainment.com/forums/topic/28248-helpremoving-item-in-world/#findComment-331145 Share on other sites More sharing options...
KidneyBeanBoy Posted September 27, 2013 Share Posted September 27, 2013 There's an item that does that, or do you mean by console commands or coding? Link to comment https://forums.kleientertainment.com/forums/topic/28248-helpremoving-item-in-world/#findComment-331146 Share on other sites More sharing options...
debugman18 Posted September 27, 2013 Share Posted September 27, 2013 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. Link to comment https://forums.kleientertainment.com/forums/topic/28248-helpremoving-item-in-world/#findComment-331148 Share on other sites More sharing options...
CountNoobula Posted September 27, 2013 Author Share Posted September 27, 2013 I plan to do it in coding Thanks debugman18! Is there a way to get a list of all the items so I can sort through it though please? [sorry and thanks] Link to comment https://forums.kleientertainment.com/forums/topic/28248-helpremoving-item-in-world/#findComment-331184 Share on other sites More sharing options...
Craig_Perry Posted September 27, 2013 Share Posted September 27, 2013 I plan to do it in coding Thanks debugman18! 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) Link to comment https://forums.kleientertainment.com/forums/topic/28248-helpremoving-item-in-world/#findComment-331191 Share on other sites More sharing options...
CountNoobula Posted September 27, 2013 Author Share Posted September 27, 2013 Thanks for all the help guys! Link to comment https://forums.kleientertainment.com/forums/topic/28248-helpremoving-item-in-world/#findComment-331198 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