1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-03 18:27:13 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Characters/Kernyr.gd
T

22 lines
536 B
GDScript
Raw Normal View History

extends EntityBase
class_name Kernyr
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 2000
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.1
fields[FieldStore.Entity.OFFSET_SHOOT] = 20
attackCooldownMap[0] = 300
func ai():
PresetEntityAI.follow(self , currentFocusedBoss)
tryAttack(0)
func attack(type: int):
if type == 0:
for bullet in BulletBase.generate(
ComponentManager.getBullet("Yangyi"),
self ,
position,
position.angle_to_point(currentFocusedBoss.position)
):
if bullet is YangyiBullet:
pass