waited far too long for an initial commit but here we are
This commit is contained in:
13
Scripts/hitbox.gd
Normal file
13
Scripts/hitbox.gd
Normal file
@ -0,0 +1,13 @@
|
||||
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)
|
Reference in New Issue
Block a user