|
Post by zonewand on Jan 3, 2020 13:56:39 GMT
Hi all, anyone here who can help with inventory pro with invector controller? Got all inventory stuff working except having issue when using consumable item.
I need to make it so that if i have currently max health i cant use item until health has dropped again to be under max health. Currently can consume items on max health, they dont change health amount, but still items get removed on use from inventory.
Healing specific amount works and change also show in hud.
So any help would be appreciated.
|
|
|
Post by zonewand on Jan 4, 2020 14:44:25 GMT
Managed to make it work by code adding invector Herobase.currenthealth and maxhealth on if statement, so now everything works after adding reference to invector controller.
|
|
|
Post by shadex on Jan 5, 2020 19:42:06 GMT
Managed to make it work by code adding invector Herobase.currenthealth and maxhealth on if statement, so now everything works after adding reference to invector controller. If your using Inventory Pro, i would suggest making it an itemType. If you put a bunch of public variables in the item type, you can set these up when creating the item through IP. For instance, my potions include health/stamina/mana, have instant/over time (w/ variable), and a simple check on use if the player is holding anything. If your creating a lot of items/equipment it's totally worth it.
|
|