You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
238 B
GDScript

@tool
extends ActionCheck
class_name ActionRoleCheckIs
@export var key: Enum.EAIRoleType = Enum.EAIRoleType.None
func run(character: Character) -> BT.Status:
if character.get_status("ai_role") == key:
return SUCCESS
return FAILURE