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

13 lines
479 B
GDScript
Raw Normal View History

extends BulletBase
class_name BengbengBullet
func spawn():
hitbox.disabled = true
func ai():
texture.global_rotation = 0
PresetBulletAI.forward(self , position.angle_to_point(launcher.currentFocusedBoss.position))
if is_instance_valid(launcher.currentFocusedBoss):
if launcher.currentFocusedBoss.position.distance_to(position) < 125 && hitbox.disabled:
EffectController.create(ComponentManager.getEffect("NuclearExplosion"), position).shot()
hitbox.disabled = false