In shadowwaxwellbrain.lua:
local function ShouldAvoidExplosive(target) return target.components.explosive == nil or target.components.burnable == nil or target.components.burnable:IsBurning() end
local avoid_explosions = RunAway(self.inst, { fn = ShouldAvoidExplosive, tags = { "explosive" }, notags = { "INLIMBO" } }, AVOID_EXPLOSIVE_DIST, AVOID_EXPLOSIVE_DIST)
They run away from firecrackers because they are tagged explosive, but do not have the explosive component, so the function returns true to run away from it.
Steps to Reproduce
See above
There are no comments to display.
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