ActorBackpack
Usage:
ActorBackpack(Actor, ItemNumber)
Description:
The ActorBackpack command returns the handle to the item in the specified actor's inventory backpack slot. The backpack is actually made up of multiple slots, numbered 1 - 36. You must specify which slot you wish to retrieve the item from. If there is no item in the specified slot, zero is returned. The handle can then be used with other item commands, such as ItemName to see which item is being carried.
Example:
Function Main()
Result = ActorBackpack(Actor(), 1)
If (Result == 0)
Output(Actor(), "No item in slot!")
Else
Output(Actor(), "Item: " $+ ItemName(Result))
EndIf
Return()
End Function
Comments (0)
You don't have permission to comment on this page.