monke
This commit is contained in:
@@ -10,6 +10,7 @@ enum HitboxType{
|
||||
export var hitbox_type = HitboxType.Unassigned
|
||||
var slap_level = 0
|
||||
var slap_vector = Vector3()
|
||||
var slap_kill = 0
|
||||
|
||||
func _init():
|
||||
collision_layer = 2
|
||||
|
@@ -15,6 +15,6 @@ func _on_area_entered(hitbox: HitBox):
|
||||
return
|
||||
|
||||
if hitbox.hitbox_type == hitbox.HitboxType.Slap and owner.has_method("get_slapped"):
|
||||
owner.get_slapped(hitbox.slap_level, hitbox.slap_vector)
|
||||
owner.get_slapped(hitbox.slap_level,hitbox.slap_kill, hitbox.slap_vector)
|
||||
elif hitbox.hitbox_type == hitbox.HitboxType.Projectile and owner.has_method("get_shot"):
|
||||
owner.get_shot()
|
||||
owner.get_shot(hitbox.owner)
|
||||
|
Reference in New Issue
Block a user