Log inGet started
World

Gaugeworks: Health, Shield, Mana and Stamina Bar Kit

README.md

Resource

A named pool that drains and refills: stamina, mana, energy, oxygen, anything. Put it on a player or NPC. Fields: resourceName, max, value, regenRate, regenDelay, drainRate while drainKey is held or draining is true, and demo to cycle on its own. Methods (colon calls): spend (false if there is not enough), gain, set, fraction. The entity owner is the authority; other peers send requests and the value syncs. A second Resource on one entity is a named instance; BK.resource adds one for you.