8 lines
226 B
GDScript
8 lines
226 B
GDScript
extends BehaviourAction
|
|
|
|
@export var match_type := ""
|
|
|
|
@onready var body := get_behaviour_tree().get_parent() as CharacterBody3D
|
|
|
|
func _enter() -> int:
|
|
return Success if body.get_current_weapon_type() == match_type else Fail
|