satuisaburda Posted September 1, 2015 Share Posted September 1, 2015 First of all I want to make a custom character, And one of this characters downsides is the inability to chop down trees. How would i make him unable to interact with trees or take an insane amount of hits to chop down a tree? Link to comment https://forums.kleientertainment.com/forums/topic/57565-help-making-something-like-a-tree-unattackable/ Share on other sites More sharing options...
ZupaleX Posted September 3, 2015 Share Posted September 3, 2015 Remove the ACTIONS.CHOP when playing with this character. Link to comment https://forums.kleientertainment.com/forums/topic/57565-help-making-something-like-a-tree-unattackable/#findComment-668996 Share on other sites More sharing options...
satuisaburda Posted September 3, 2015 Author Share Posted September 3, 2015 How would i remove something like that? Link to comment https://forums.kleientertainment.com/forums/topic/57565-help-making-something-like-a-tree-unattackable/#findComment-669099 Share on other sites More sharing options...
ZupaleX Posted September 4, 2015 Share Posted September 4, 2015 you could just replace ACTIONS.CHOP.fn by some empty function which "return" directly, or return after a small speech "I cannot attack tree for this reason and that reason and I love nature and blah". Link to comment https://forums.kleientertainment.com/forums/topic/57565-help-making-something-like-a-tree-unattackable/#findComment-669321 Share on other sites More sharing options...
satuisaburda Posted September 4, 2015 Author Share Posted September 4, 2015 Actually do you know the event when a tree is hit by an axe? inst:ListenForEvent("working",function() inst.components.sanity:DoDelta(-10) end) This works but also effects mining. Link to comment https://forums.kleientertainment.com/forums/topic/57565-help-making-something-like-a-tree-unattackable/#findComment-669499 Share on other sites More sharing options...
Mobbstar Posted September 5, 2015 Share Posted September 5, 2015 Actually do you know the event when a tree is hit by an axe? inst:ListenForEvent("working",function() inst.components.sanity:DoDelta(-10) end) This works but also effects mining. Look at "Strom the Tree" for a better execution of this approach. Link to comment https://forums.kleientertainment.com/forums/topic/57565-help-making-something-like-a-tree-unattackable/#findComment-669656 Share on other sites More sharing options...
satuisaburda Posted September 6, 2015 Author Share Posted September 6, 2015 Thank you i finally implemented that hippie perk :3 Link to comment https://forums.kleientertainment.com/forums/topic/57565-help-making-something-like-a-tree-unattackable/#findComment-669980 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