Hi,
I am trying to create a max limit on items in a chest.
I am trying to set it up using the OnDisturbed section. Is there a way of checking if an item is being put in so I can add or take away a stored int?
If not, anyone know of another way?
Thanks,
OnDisturbed help
Débuté par
doomie22
, oct. 27 2010 10:43
#1
Posté 27 octobre 2010 - 10:43
#2
Posté 27 octobre 2010 - 11:54
// Get the type of disturbance (INVENTORY_DISTURB_*) that caused the caller's
// OnInventoryDisturbed script to fire. This will only work for creatures and
// placeables.
int GetInventoryDisturbType()
Uses these consts:
INVENTORY_DISTURB_TYPE_ADDED
INVENTORY_DISTURB_TYPE_REMOVED
INVENTORY_DISTURB_TYPE_STOLEN
So,
if (GetInventoryDisturbType() == INVENTORY_DISTURB_TYPE_ADDED)
is what you want.
Funky
// OnInventoryDisturbed script to fire. This will only work for creatures and
// placeables.
int GetInventoryDisturbType()
Uses these consts:
INVENTORY_DISTURB_TYPE_ADDED
INVENTORY_DISTURB_TYPE_REMOVED
INVENTORY_DISTURB_TYPE_STOLEN
So,
if (GetInventoryDisturbType() == INVENTORY_DISTURB_TYPE_ADDED)
is what you want.
Funky





Retour en haut






