8 lines
182 B
GDScript
8 lines
182 B
GDScript
extends BTCondition
|
|
@export var invert : bool
|
|
func _tick(delta: float) -> Status:
|
|
if agent.data and ((agent.data.quest == null) == invert):
|
|
return SUCCESS
|
|
else:
|
|
return FAILURE
|