pub fn patrol_set_target(
name: &str,
waypoints: Vec<Vec3>,
waypoint_idx_key: &str,
agent_pos_key: &str,
target_pos_key: &str,
arrival_radius: f32,
) -> BehaviorNodeExpand description
Move through a fixed list of waypoints in a loop.
Stores current waypoint index in "{waypoint_idx_key}".
Writes the next target to "{target_pos_key}" and then delegates movement
to the blackboard consumer (i.e. pair this with move_to).
On each tick:
- Load current waypoint index from
"{waypoint_idx_key}"(default 0). - Write that waypoint’s Vec3 into
"{target_pos_key}". - If agent is within
arrival_radius, advance the index and return Running. - Otherwise return Running (movement handled externally).