<aside> 📦 BARLIB.acs
</aside>
<aside> âš¡ void SetOverlayBar(int owned, int capacity)
</aside>
Draws a flashing, overlay bar on the primary ammo bar which draws from the bottom of the bar upwards.
owned
: Int - The amount to draw for the bar.capacity
: Int - The capacity of the bar.<aside>
💡 Note: One way to visualize what these latter two parameters do is that they set up a ratio that equals the percentage of the bar drawn. If I own 2 HomingSniperCharge
and the capacity is 4, then it sets up the ratio 2/4, meaning that 50% of the bar is drawn.
</aside>
script "DrawBar_TenguBladeWep" (void) {
if(CheckInventory("WeaponCharge")>0) SetOverlayBar(CheckInventory("WeaponCharge"), 25);
}