TYPE_BOOL, TYPE_INT, TYPE_REAL, TYPE_STRING, TYPE_VECTOR2, TYPE_VECTOR3
FilterType, IntRangeType, FloatRangeType
var health = 5
func _ready():
Console.add_command('set_health', self, 'health')\
.set_description('Set health')\
.add_argument('health', Console.FloatRangeType.new(0, 5, 0.5))\
.register()
Warning: Types API is unstable and may (and probably will) change.
To add custom type extend res://addons/quentincaffeino/console/src/Type/BaseType.gd
(BaseType)