BTRandomWait

Inherits: BTAction < BTTask < BT

BT action that waits for a randomized duration to elapse and then returns SUCCESS.

Description

BTRandomWait action waits for a randomized duration to elapse and then returns SUCCESS. The duration is randomized within the specified range, defined by min_duration and max_duration.

Properties

float

max_duration

2.0

float

min_duration

1.0


Property Descriptions

float max_duration = 2.0

  • void set_max_duration ( float value )

  • float get_max_duration ( )

Maximum duration for the wait.


float min_duration = 1.0

  • void set_min_duration ( float value )

  • float get_min_duration ( )

Minimum duration for the wait.