limboai/bt/decorators/bt_always_succeed.cpp

11 lines
195 B
C++
Raw Normal View History

/* bt_always_succeed.cpp */
#include "bt_always_succeed.h"
int BTAlwaysSucceed::_tick(float p_delta) {
if (get_child(0)->execute(p_delta) == RUNNING) {
return RUNNING;
}
return SUCCESS;
}