<1232> BTRandomSequence <1233> BT composite that executes tasks in random order as long as they return <1/>. <1234> BTRandomSequence executes its child tasks in a random order as long as they return <1/>. If a child task results in <2/>, BTRandomSequence will immediately execute the next child task until one of them returns <3/> or all of them result in <4/>. <1235> Returns <1/> if a child task results in <2/>. BTRandomSequence will remember the execution order and the last child task that returned <3/>, ensuring it resumes from that point in the next tick. <1236> BTRandomWait <1237> BT action that waits for a randomized duration to elapse and then returns <1/>. <1238> BTRandomWait action waits for a randomized duration to elapse and then returns <1/>. The duration is randomized within the specified range, defined by min_duration and max_duration. <1239> max_duration <1240> min_duration <1241> <1/> max_duration = <2/> ๐Ÿ”— <1242> <1/> set_max_duration(value: <2/>) <1243> <1/> get_max_duration() <1244> Maximum duration for the wait. <1245> <1/> min_duration = <2/> ๐Ÿ”— <1246> <1/> set_min_duration(value: <2/>) <1247> <1/> get_min_duration() <1248> Minimum duration for the wait. <1249> BTRepeat <1250> BT decorator that repeats its child a specified number of times. <1251> BTRepeat iterates its child task a specified number of times, as defined by times. If forever is <3/>, the childโ€™s execution will be repeated indefinitely. <1252> Returns <1/> if the child task results in <2/>. If forever is <4/>, BTRepeat will always return <5/>. <1253> Returns <1/> if the specified number of successful executions is reached. If abort_on_failure is <3/>, a <4/> status returned by the child is also considered a successful execution. <1254> Returns <1/> if the child task results in <2/> when abort_on_failure is <4/>. <1255> abort_on_failure <1256> forever <1257> times <1258> <1/> abort_on_failure = <2/> ๐Ÿ”— <1259> If <1/>, <2/> status returned by the child task is also considered as a successful execution. <1260> <1/> forever = <2/> ๐Ÿ”— <1261> <1/> set_forever(value: <2/>) <1262> <1/> get_forever() <1263> If <1/>, the childโ€™s execution will be repeated indefinitely, always returning <2/>. <1264> <1/> times = <2/> ๐Ÿ”— <1265> <1/> set_times(value: <2/>) <1266> <1/> get_times() <1267> The number of times to repeat execution of the child task. <1268> BTRepeatUntilFailure <1269> BT decorator that repeats its child task until <1/>. <1270> BTRepeatUntilFailure repeats its child task until it results in <1/>. <1271> Returns <1/> if the child task results in <2/> or <3/>. <1272> Returns <1/> if the child task results in <2/>. <1273> BTRepeatUntilSuccess <1274> BT decorator that repeats its child task until <1/>. <1275> BTRepeatUntilSuccess repeats its child task until it results in <1/>. <1276> Returns <1/> if the child task results in <2/> or <3/>. <1277> Returns <1/> if the child task results in <2/>. <1278> BTRunLimit <1279> BT decorator that restricts the execution of its child a limited number of times. <1280> BTRunLimit restricts the execution of the child task to a maximum number of times, defined by run_limit. <1281> Returns <1/> if the limit on executions is exceeded; otherwise, it returns the status of the child task. <1282> CountPolicy <1283> count_policy <1284> run_limit <1285> enum CountPolicy: ๐Ÿ”— <1286> CountPolicy COUNT_SUCCESSFUL = <2/> <1287> Count only successful runs towards the limit. <1288> CountPolicy COUNT_FAILED = <2/> <1289> Count only failed runs towards the limit. <1290> CountPolicy COUNT_ALL = <2/> <1291> Count successful and failed runs towards the limit. <1292> CountPolicy count_policy = <2/> ๐Ÿ”— <1293> <1/> set_count_policy(value: CountPolicy) <1294> CountPolicy get_count_policy() <1295> Which runs should be counted towards the limit: successful, failed, or all? <1296> <1/> run_limit = <2/> ๐Ÿ”— <1297> <1/> set_run_limit(value: <2/>) <1298> <1/> get_run_limit() <1299> The maximum number of times the child is permitted to be executed. <1300> BTSelector <1301> BT composite that sequentially executes tasks until first <1/>. <1302> BTSelector executes its child tasks sequentially, from first to last, until any child returns <1/>. If a child task results in <2/>, BTSelector will immediately execute the next child task until one of them returns <3/> or all of them result in <4/>. BTSelector and BTSequence are two of the most common building blocks of behavior trees. Essentially, while BTSequence is similar to a boolean AND operation, BTSelector is similar to a boolean OR operation. Selectors enable the behavior tree to respond to changes in the environment and trigger transitions between various fallback behaviors. <1303> Returns <1/> if a child task results in <2/>. BTSelector will remember the last child task that returned <3/>, ensuring it resumes from that point in the next execution tick. <1304> BTSequence <1305> BT composite that sequentially executes tasks as long as they return <1/>. <1306> BTSequence executes its child tasks sequentially, from first to last, as long as they return <1/>. If a child task results in <2/>, BTSequence will immediately execute the next child task until one of them returns <3/> or all of them result in <4/>. BTSequence and BTSelector are two of the most common building blocks of behavior trees. Essentially, while BTSelector is similar to a boolean OR operation, BTSequence is similar to a boolean AND operation. Sequences enable the behavior tree to compose complex behaviors from a chain of simpler tasks. <1307> Returns <1/> if any child task results in <2/>. BTSequence will remember the last child task that returned <3/>, ensuring it resumes from that point in the next execution tick. <1308> BTSetAgentProperty <1309> BT action that assigns a value to the specified agentโ€™s property. <1310> BTSetAgentProperty assigns the specified value to the agentโ€™s property identified by the property and returns <3/>. Optionally, it can perform a specific operation before assignment. <1311> Returns <1/> if it fails to set the property. <1312> Operation <1313> operation <1314> property <1315> value <1316> Operation operation = <2/> ๐Ÿ”— <1317> <1/> set_operation(value: Operation) <1318> Operation get_operation() <1319> Specifies the operation to be performed before assignment. Operation is executed as follows: <1320> <1/> property = <2/> ๐Ÿ”— <1321> Parameter that specifies the agentโ€™s property name. <1322> BBVariant value ๐Ÿ”— <1323> Parameter that specifies the value that will be assigned to agentโ€™s property. <1324> BTSetVar <1325> BT action that assigns value to the variable and then returns <3/>. <1326> BTSetVar assigns value to the variable and then returns <3/>. Optionally, it can perform a specific operation before assignment. <1327> Returns <1/> if it fails to set the variable. <1328> operation <1329> value <1330> variable <1331> Operation operation = <2/> ๐Ÿ”— <1332> BBVariant value ๐Ÿ”— <1333> Parameter that specifies the value to be assigned to the variable. <1334> <1/> variable = <2/> ๐Ÿ”— <1335> Name of the variable to which the value will be assigned. <1336> BTStopAnimation <1337> BT action that stops the playback of an animation on the specified <1/> node. <1338> BTStopAnimation action stops the playback of an animation on the specified <1/> node and returns <2/>. If animation_name is set, it will only stop the playback if the specified animation is currently playing. <1339> animation_name <1340> animation_player <1341> keep_state <1342> <1/> animation_name = <2/> ๐Ÿ”— <1343> Animationโ€™s key within the <1/> node. If not empty, BTStopAnimation will only stop the playback if the specified animation is currently playing. <1344> BBNode animation_player ๐Ÿ”— <1345> <1/> keep_state = <2/> ๐Ÿ”— <1346> <1/> set_keep_state(value: <2/>) <1347> <1/> get_keep_state() <1348> If <1/>, the animation state is not updated visually. <1349> BTSubtree <1350> Inherits: BTNewScope < BTDecorator < BTTask < BT <1351> BT decorator that instantiates and runs a subtree within the larger tree. <1352> BTSubtree instantiates a BehaviorTree and includes its root task as a child during initialization, while also creating a new Blackboard scope. <1353> Returns the status of the subtreeโ€™s execution. <1354> Subtree blackboard variables can be mapped to the main tree blackboard plan variables. Check out mapping section in the inspector. <1355> Note: BTSubTree is designed as a simpler loader, and does not support updating subtree at runtime. A custom subtree decorator is better suited: <1356> This allows for the BehaviorTree to load a specific behavior tree from a variable in the blackboard, or from some other location, and use that new behavior tree at runtime. <1357> subtree <1358> BehaviorTree subtree ๐Ÿ”— <1359> <1/> set_subtree(value: BehaviorTree) <1360> BehaviorTree get_subtree() <1361> A BehaviorTree resource that will be instantiated as a subtree. <1362> BTTimeLimit <1363> BT decorator that sets a time limit for its childโ€™s execution. <1364> BTTimeLimit allocates a limited time for the childโ€™s execution and aborts it, returning <1/> if the time_limit is exceeded. <1365> Returns <1/> if the time_limit is exceeded; otherwise, it returns the status of the child task. <1366> time_limit <1367> <1/> time_limit = <2/> ๐Ÿ”— <1368> <1/> set_time_limit(value: <2/>) <1369> <1/> get_time_limit() <1370> Time allocated for the child taskโ€™s execution. <1371> BTWait <1372> BT action that waits for a specified duration to elapse and then returns <2/>. <1373> duration <1374> <1/> duration = <2/> ๐Ÿ”— <1375> There is currently no description for this property. Please help us by contributing one! <1376> BTWaitTicks <1377> BT action that waits for a specified number of ticks to elapse and then returns <1/>. <1378> num_ticks <1379> <1/> num_ticks = <2/> ๐Ÿ”— <1380> <1/> set_num_ticks(value: <2/>) <1381> <1/> get_num_ticks() <1382> The number of ticks to wait before returning <1/>. <1383> LimboUtility <1384> Helper functions for LimboAI. <1385> decorate_output_var(variable: <2/>) <3/> <1386> decorate_var(variable: <2/>) <3/> <1387> get_check_operator_string(check: CheckType) <3/> <1388> get_operation_string(operation: Operation) <3/> <1389> get_status_name(status: <2/>) <3/> <1390> get_task_icon(class_or_script_path: <2/>) <3/>