First_Person_Slapper/Scripts/HitBox.gd

17 lines
236 B
GDScript3
Raw Normal View History

2022-10-11 19:11:46 -04:00
class_name HitBox
extends Area
enum HitboxType{
Unassigned,
Slap,
Projectile,
}
export var hitbox_type = HitboxType.Unassigned
var slap_level = 0
var slap_vector = Vector3()
func _init():
collision_layer = 2
collision_mask = 0