mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
13 lines
301 B
GDScript
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)
|