BTConsolePrint

Inherits: BTAction < BTTask < BT

BT action task that outputs text to the console.

Description

BTConsolePrint action outputs text to the console and returns SUCCESS. It can include placeholders for format arguments similar to GDScript’s % operator.

Properties

PackedStringArray

bb_format_parameters

PackedStringArray()

String

text

""


Property Descriptions

PackedStringArray bb_format_parameters = PackedStringArray() 🔗

  • void set_bb_format_parameters(value: PackedStringArray)

  • PackedStringArray get_bb_format_parameters()

The values of format parameters are used as format arguments for the text that will be printed.

Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.


String text = "" 🔗

  • void set_text(value: String)

  • String get_text()

The text to be printed, which can include multiple placeholders to be substituted with format arguments. These placeholders follow the same format as GDScript’s % operator and typically start with ‘%’ followed by a format specifier. For instance: %s for string, %d for integer, %f for real.