Difference between revisions of "GetIsUsedItemType"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
 
imported>Vswe
m (Added Search Terms)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Syntax:'''
'''Syntax:'''
  GetIsUsedItemType ''ObjectType''
[''ActorID''.]GetIsUsedItemType ''ObjectType''
'''Example:'''
'''Example:'''
  GetIsUsedItemType Ingredient  
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.
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.


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category:Actor Functions]]
[[Category:Actor Functions (CS 1.0)]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions]]
[[Category: Actor State Functions (CS 1.0)]]
[[Category: Condition Functions]]
[[Category: Condition Functions]]
[[Category: Condition Functions (CS 1.0)]]
<!-- Begin Search Terms
Get
Is
Used
Item
Type
End Search Terms -->

Latest revision as of 09:00, 20 June 2008

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.