mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 00:11:54 +08:00
9 lines
197 B
GDScript
9 lines
197 B
GDScript
|
|
extends BulletBase
|
||
|
|
class_name BroomBoomerangBullet
|
||
|
|
|
||
|
|
func ai():
|
||
|
|
PresetBulletAI.forward(self , rotation)
|
||
|
|
speed -= 0.5
|
||
|
|
if speed < 0 && position.distance_to(launcher.position) < 100:
|
||
|
|
tryDestroy()
|