Difference between revisions of "GetIsUsedItem"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
 
imported>Khadir
(Documenting actor functions ...)
Line 1: Line 1:
{{ActorFunction}}
'''Syntax:'''
'''Syntax:'''
  GetIsUsedItem ''ObjectID''  
[''ActorID''.]GetIsUsedItem ''ObjectID''  
'''Example:'''
'''Example:'''
  GetIsUsedItem Apple01  
GetIsUsedItem Apple01  


Returns true if the actor is currently using the specified item. 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. 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.

Revision as of 05:20, 28 June 2006

Template:ActorFunction Syntax:

[ActorID.]GetIsUsedItem ObjectID 

Example:

GetIsUsedItem Apple01 

Returns true if the actor is currently using the specified item. 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.