mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-30 07:51:54 +08:00
14 lines
315 B
GDScript
14 lines
315 B
GDScript
|
|
@tool
|
||
|
|
extends Weapon
|
||
|
|
|
||
|
|
func attack(entity: EntityBase):
|
||
|
|
for bullet in BulletBase.generate(
|
||
|
|
ComponentManager.getBullet("Parrier"),
|
||
|
|
entity,
|
||
|
|
entity.findWeaponAnchor("normal"),
|
||
|
|
entity.findWeaponAnchor("normal").angle_to_point(get_global_mouse_position()),
|
||
|
|
):
|
||
|
|
if bullet is ParrierBullet:
|
||
|
|
pass
|
||
|
|
return true
|