summaryrefslogtreecommitdiff
path: root/API.md
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2015-02-09 23:13:33 +0100
committerWuzzy <almikes@aol.com>2015-02-09 23:13:33 +0100
commit79997659d937e83071bb37d3a4d48e52d4155117 (patch)
tree57b3d8389abac34fe20192678caf77762bbfc94e /API.md
parent28551721f4179ca4ec15930d49c8ddcfa05eff58 (diff)
Allow hud.change_hudbar to change only one or no value of both
Diffstat (limited to 'API.md')
-rw-r--r--API.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/API.md b/API.md
index ca668e8..b0a12b0 100644
--- a/API.md
+++ b/API.md
@@ -104,7 +104,9 @@ After a HUD bar has been added, you can change the current and maximum value on
You use the function `hud.change_hudbar` for this.
### `hud.change_hudbar(player, identifier, new_value, new_max_value)`
-Changes the values of. If
+Changes the values of an initialized HUD bar for a certain player. `new_value` and `new_max_value`
+can be `nil`; if one of them is `nil`, that means the value is unchanged. If both values
+are `nil`, this function is a no-op.
#### Parameters
* `player`: `ObjectRef` of the player to which the HUD bar belongs to