Custom storage conditions
Last updated
Last updated
It's possible to add custom storage conditions to a container. Those conditions allows you to extend container ability to remove or add items, based on pretty much anything you want.
To do so, you'll need to create a new script that implements the IStorageCondition interface.
Here's an example :
This condition is for the jumpsuit container on the Human. It allows the jumpsuit to be removed only if the belt container is empty. Pretty simple !
Just put the condition script on the same game object as your container, you can add multiple conditions if you want.