What it does
hud.removeBar removes Bar on a hud object. It takes id.
Signature
hud.removeBar(id)Arguments
id
Example · generated
function start() { hud.createBar('bar', { value: 1, max: 1, label: 'Hello' }); hud.removeBar('bar');}hud.createBar is there to give the call something to act on; hud.removeBar is the line that matters. The code sits in start(), which the engine calls once, when the entity spawns.