Get your own free workspace
View
 

ActorHat

Page history last edited by Gamemaster 3 years, 9 months ago

 

 

ActorHat

Usage:

                ActorHat(Actor)

Description:

The ActorHat command returns the handle to the item in the specified actor's inventory hat slot. If there is no item in the slot, zero is returned. The handle can then be used with other item commands, such as ItemName to see which item is being worn.

Example:

                Function Main()
                        Result = ActorHat(Actor())
                        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.