Frugo12 Posted November 15, 2021 Share Posted November 15, 2021 Hello. I'm trying to make my custom item do more damage to enemies that are on fire, and im not quite sure how to go about doing this. Can i ask you guys for help? Link to comment Share on other sites More sharing options...
skittles sour Posted November 15, 2021 Share Posted November 15, 2021 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 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