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

13 lines
301 B
GDScript

extends BulletBase
class_name Diamond
const traceTime = 1500
func register():
damage = 2
func ai():
canDamageSelf = !(timeLived() >= traceTime)
PresetBulletAI.forward(self, rotation)
if timeLived() < traceTime:
PresetBulletAI.trace(self, launcher.currentFocusedBoss.getTrackingAnchor(), 0.05)