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.
11 lines
266 B
GDScript
11 lines
266 B
GDScript
|
1 year ago
|
extends ActionRoleCheck
|
||
|
|
class_name ActionRoleCheckIs
|
||
|
|
|
||
|
|
@export var key: Enum.EAIRoleType = Enum.EAIRoleType.None
|
||
|
|
|
||
|
|
|
||
|
|
func run(character: Character, blackboard: Blackboard) -> int:
|
||
|
|
if character.get_status("ai_role") == key:
|
||
|
|
return SUCCESS
|
||
|
|
return FAILURE
|