mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
13 lines
479 B
GDScript
13 lines
479 B
GDScript
|
|
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
|