Boolean before destroy actor and remove index
Good evening! (This example is based off the UMG Inventory tutorial on YouTube) I am attempting to preform a boolean check before removing "Inventory Slot" from array index.
I tried creating a bool "ItemUsed" to be set on the BP_Pickup. Then placed a branch to check that bool before "remove index" in GameHUD to only remove the Inventory Slot if bool: ItemUsed was true. That did not work.
Should I be calling "remove index" from BP_Pickup? I've tried a few different things with no luck. Below are the two blueprints before my boolean modifications.. I'm stumped.
GameHUD BP_Ammo_Pickup Any advice would be awesome! Thanks!
Solved this.. I was setting "ItemUsed" before I set "CurrentAmmo". I set "ItemUsed" after set "CurrentAmmo" and it worked.
if anyone has any pointers, feel free to shine in! Thanks!
answered Feb 11 '15 at 08:55 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here