<aside> 📦 BARLIB.acs
</aside>
<aside> âš¡ void SetOverlayBarReverse(int owned, int capacity)
</aside>
Draws a flashing, overlay bar on the primary ammo bar which draws from the top of the bar downwards.
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_DeepDiggerWep" (void) {
SetOverlayBar(CheckInventory("DeepDiggerFlagL"), 2);
SetOverlayBarReverse(CheckInventory("DeepDiggerFlagR"), 2);
}