Difference between revisions of "GetIsUsedItem"
Jump to navigation
Jump to search
imported>Haama (Category links) |
imported>Vswe m (Added Search Terms) |
||
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category:Functions (CS)]] | |||
[[Category: Functions (CS 1.0)]] | [[Category: Functions (CS 1.0)]] | ||
[[Category:Actor Functions]] | [[Category:Actor Functions]] | ||
Line 14: | Line 15: | ||
[[Category: Condition Functions]] | [[Category: Condition Functions]] | ||
[[Category: Condition Functions (CS 1.0)]] | [[Category: Condition Functions (CS 1.0)]] | ||
<!-- Begin Search Terms | |||
Get | |||
Is | |||
Used | |||
Item | |||
End Search Terms --> |
Latest revision as of 09:00, 20 June 2008
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.