Silhh Posted October 29, 2015 Share Posted October 29, 2015 Working on a new character and I need help with a few perks. First, is it possible to make a deployable item (EX: An item that you set down in the ground permanently) that causes AOE damaging effects like abigail? Second, I want to make the character unable to craft anything when their sanity reaches 0. If anyone can lend a hand, I would really appreciate it! Link to comment Share on other sites More sharing options...
Mobbstar Posted October 29, 2015 Share Posted October 29, 2015 First thing sounds easy. The AoE damage is done by a component called "aura". Literally just "aura". You can probably copy all the things setting this component up from abigail.lua, except for the test function (because you want to write your own condition: being deployed). Deployable is a component too, you can check the trap_tooth.lua or however it's called for that. The second perk, I have no idea for. Link to comment Share on other sites More sharing options...
Kzisor Posted October 29, 2015 Share Posted October 29, 2015 (edited) @Silhh, perk 2 for those wondering.local _DoBuild = inst.components.builder.DoBuildinst.components.builder.DoBuild = function( self, recname, pt, rotation, skin ) if self.inst.components.sanity.current == 0 then return false end return _DoBuild(self, recname, pt, rotation, skin)end Edited October 29, 2015 by Kzisor Link to comment 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