mtd/Scripts/hitbox.gd

14 lines
213 B
GDScript3
Raw Normal View History

extends CollisionShape3D
class_name Hitbox
signal took_damage(amount)
func damage(amount):
networked_damage.rpc(amount)
@rpc("any_peer","call_local")
func networked_damage(amount):
took_damage.emit(amount)