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/Characters/KukeMC.gd
T

12 lines
282 B
GDScript
Raw Normal View History

extends EntityBase
class_name KukeMC
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 1000
func ai():
for bullet in get_tree().get_nodes_in_group("bullets"):
if (
bullet is LGBTBullet and
bullet.position.distance_to(self.position) < 200
):
bullet.tryDestroy()