<aside> 📦 BARLIB.acs

</aside>

<aside> âš¡ void SetOverlayBar(int owned, int capacity)

</aside>

Usage


Draws a flashing, overlay bar on the primary ammo bar which draws from the bottom of the bar upwards.

Parameters

<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>

Example


script "DrawBar_TenguBladeWep" (void) {
	if(CheckInventory("WeaponCharge")>0) SetOverlayBar(CheckInventory("WeaponCharge"), 25);
}

See Also


SetOverlayBarReverse

SetOverlayBar2

SetOverlayBarReverse2

SetOverlayBarHP

SetOverlayBarReverseHP