GetIsUsedItemType

Revision as of 10:00, 20 June 2008 by imported>Vswe (Added Search Terms)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

[ActorID.]GetIsUsedItemType ObjectType

Example:

GetIsUsedItemType Ingredient 

Returns true if the actor is currently using the specified item type. This is ONLY useful in condition functions, because the UsedItem variable is always cleared by the time scripts run, but anything called by AI (picking an Idle, saying a voice, etc) while the variable is set will be able to check it in conditions.