Jump to content

Custom weapon with the "lighter" component doesn't light trees


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!

Link to comment
Share on other sites

@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
Share on other sites

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.

×
  • Create New...