Explosion Without damage to player
Add check for the upcoming hits if it's the player, if so > skip damage.
#
ExampleCL.InteractTrigger.HitScanAction = function(beHitPu, beHitCol, selfPu, rb, col, hitDir, hitterCamp) local isSkip = false if (beHitPu.unitType == CL.Tagger.Tag.PlayerRole) then isSkip = true end return isSkipend
CL.InteractTrigger.ApplyExplode(self.trans.position, self.explodeRange, self.host, self.host.rb, self.host.col, CL.AIProxy.CampNone)
#
User VariablesNo user variables.
#
FAQ#
Where do I add this script?Most common use will be in FlyExplodeScript.txt