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
12 lines
238 B
GDScript
|
8 months ago
|
@tool
|
||
|
|
extends ActionCheck
|
||
|
1 year ago
|
class_name ActionRoleCheckIs
|
||
|
|
|
||
|
|
@export var key: Enum.EAIRoleType = Enum.EAIRoleType.None
|
||
|
|
|
||
|
|
|
||
|
8 months ago
|
func run(character: Character) -> BT.Status:
|
||
|
9 months ago
|
if character.get_status("ai_role") == key:
|
||
|
|
return SUCCESS
|
||
|
|
return FAILURE
|