Problem with progressbar node

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Talmore

Hello world, This line of code is producing the following error:

$shit/cooldownbar.set_max_value(shitstorm)	

Error
Invalid call. Nonexistent function ‘set_max_value’ in base ‘ProgressBar’.

This line works without a problem:

 $shit/cooldownbar.set_value(shitstorm)

What am I doing wrong? Is there a bug in the code?
Thanks

:bust_in_silhouette: Reply From: Dlean Jeans

Set the max_value with:

$shit/cooldownbar.max_value = shitstorm

Or if you insist on calling a function:

$shit/cooldownbar.set_max(shitstorm)

Thanks!
that solved my problem.

Talmore | 2019-07-04 03:52