18 lines
255 B
GDScript
18 lines
255 B
GDScript
class_name HitBox
|
|
extends Area
|
|
|
|
enum HitboxType{
|
|
Unassigned,
|
|
Slap,
|
|
Projectile,
|
|
}
|
|
|
|
export var hitbox_type = HitboxType.Unassigned
|
|
var slap_level = 0
|
|
var slap_vector = Vector3()
|
|
var slap_kill = 0
|
|
|
|
func _init():
|
|
collision_layer = 2
|
|
collision_mask = 0
|