WesleyT245 Posted June 26, 2018 Share Posted June 26, 2018 Is there a way to spawn in damaged items, such as a 50% spear or stale food via console commands? Many thanks. Link to comment Share on other sites More sharing options...
Daniel86268 Posted June 26, 2018 Share Posted June 26, 2018 You can try a command like: c_spawn("shovel").components.finiteuses:SetUses(<amount of uses it should have left>) -- or c_spawn("shovel").components.finiteuses:SetPercentage(0.5) [[(for 50% durability)]] for tools. Iirc for weapons you have to do an additional .weapon in the command like c_spawn("spear").weapon.components.finiteuses:SetUses(<amount of uses it should have left>) --or c_spawn("spear").weapon.components.finiteuses:SetPercentage(0.5) [[(for 50% durability for example)]] For spoilage I'm not really sure, but you could try something like c_spawn("meatballs").components.perishable.SetPercent(0.5) [[50% spoiled for example]] Link to comment Share on other sites More sharing options...
WesleyT245 Posted June 27, 2018 Author Share Posted June 27, 2018 Ah thank you so much, I was tired of summoning treegaurds and manually wearing them down. Link to comment Share on other sites More sharing options...
Daniel86268 Posted June 27, 2018 Share Posted June 27, 2018 10 minutes ago, WesleyT245 said: I was tired of summoning treegaurds If you just want to prevent Treeguards from spawning you can simply disable their spawns like this: TheWorld.topology.overrides.liefs = "never" c_save() c_reset() Afaik even chopping small trees spawn Treeguards, so if that's the only reason why you want only small trees, it'll prob not work. Link to comment Share on other sites More sharing options...
WesleyT245 Posted June 27, 2018 Author Share Posted June 27, 2018 That's not what I meant... But thanks anyway. Hmm... It doesn't seem like the weapon ones are working. They are still spawning 100% ones. Link to comment Share on other sites More sharing options...
Daniel86268 Posted June 27, 2018 Share Posted June 27, 2018 2 hours ago, WesleyT245 said: It doesn't seem like the weapon ones are working. They are still spawning 100% ones. Try running the weapon one with c_spawn("spear").components.finiteuses:SetPercentage(0.5) (without the .weapon). Maybe I remembered it incorrectly, and it's the same as normal tools. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.