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.

14 lines
299 B
GDScript

extends Action
class_name ActionWaitTick
var wait_time: float = 0.1
var wait_time_left: float
func run(character: Character, blackboard: Blackboard) -> int:
wait_time_left += get_physics_process_delta_time()
if wait_time_left >= wait_time:
wait_time_left = 0
return SUCCESS
return FAILURE