Jump to content

Dealing more damage when an enemy is on fire.

Recommended Posts

things burn because of a component called burnable. and you would be able to find a function checking for whether the entity is burning under the component. just remember to check for the existence of the component before checking for whether it's burning. as for dealing more damage, if you check the weapon component, the damage can actually be, instead of a number, a function. so you can simply set it as a function that returns a higher damage when the target is burning, and regular damage when it is not.

Link to comment
Share on other sites

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...