I'm just wondering if there's any way to prevent a unit from using an item if that item is not in the correct item container?(Example: Unit A has 2 inventories. Item B is in Inventory 2.)
In the Item Containers that you are using for your inventory system is a field called Slots - Classes just set those so that the unit can only hold the right item in the right slot that is set to be able to be equiped in the Slots - Equip field. You can create new classes of item as needed in the Item Classes menu.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Well, you can prevent the item from equipping, but I did not find a way to prevent it from being used at all. Maybe I missed something, but I could always use an item as soon as it was in any slot, regardless of the slot settings.
I'm just wondering if there's any way to prevent a unit from using an item if that item is not in the correct item container?(Example: Unit A has 2 inventories. Item B is in Inventory 2.)
There is the "equipped" option for slots in item containers. I believe there is some way to work with them.
But atm I do have the same problem.
Is there anyone out there who could help us?
In the Item Containers that you are using for your inventory system is a field called Slots - Classes just set those so that the unit can only hold the right item in the right slot that is set to be able to be equiped in the Slots - Equip field. You can create new classes of item as needed in the Item Classes menu.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Well, you can prevent the item from equipping, but I did not find a way to prevent it from being used at all. Maybe I missed something, but I could always use an item as soon as it was in any slot, regardless of the slot settings.
bumb it's possible for active items https://www.sc2mapster.com/forums/development/data/128471-disable-the-use-of-items-in-certain-slot/