Shadodragon Posted May 27, 2015 Share Posted May 27, 2015 Hi! I've created a custom weapon that can be used as an axe. It works fine in that regard. However, I also wanted it to have the function of it being capable of lighting objects on fire (as a torch could on use... but not in combat). As such I added: inst:AddComponent("lighter") And it worked perfectly... except for tress. I can light any normally ignitable world object with a right-click, except trees. I can't find any reason for this. Any thoughts? Thanks! Link to comment https://forums.kleientertainment.com/forums/topic/54460-custom-weapon-with-the-lighter-component-doesnt-light-trees/ Share on other sites More sharing options...
Corrosive Posted May 27, 2015 Share Posted May 27, 2015 @Shadodragon, Most likely because the chop action is overriding the light action. Link to comment https://forums.kleientertainment.com/forums/topic/54460-custom-weapon-with-the-lighter-component-doesnt-light-trees/#findComment-641062 Share on other sites More sharing options...
Shadodragon Posted May 27, 2015 Author Share Posted May 27, 2015 @Shadodragon, Most likely because the chop action is overriding the light action.Hmmm,possibly. The "light" action for everything else shows as a right-click action. The tree doesn't give me that option... even holding "alt" down doesn't change that. I guess because the torch and lighter "light" trees with a left-click, trees are coded differently than the other burnables as they generally have another interaction you can do. Makes sense. Any workaround thoughts? I may just have to settle for having "kindling" to set down near a tree to burn in order to indirectly burn trees. Thanks! Link to comment https://forums.kleientertainment.com/forums/topic/54460-custom-weapon-with-the-lighter-component-doesnt-light-trees/#findComment-641231 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