Jump to content

Recommended Posts

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!

@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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...