1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-29 23:41:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/InternalDamage.gd
T

14 lines
331 B
GDScript
Raw Normal View History

extends BulletBase
class_name InternalDamageBullet
var hoster: EntityBase
func spawn():
if is_instance_valid(hoster):
hoster.died.connect(tryDestroy)
hoster.hit.connect(
func(_damage, bullet: BulletBase, _crit):
if bullet.motionType == BulletBase.MotionType.EXPLOSION:
hitbox.set_deferred("disabled", false)
)