Get your own free workspace
View
 

Actor

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

 

Actor

Usage:

                Actor()

Description:

The Actor command returns a handle to the actor for whom the script is running. An actor handle is required for use in many commands such as Output. Usually the actor whose handle is returned is the player. For example: if the script is executed by a player right-clicking an NPC, Actor will return the handle of the player actor, and ContextActor will return the handle of the NPC actor.

Example:

                Function Main()
                        Player = Actor()
                        Output(Player, "Hello World!") // Displays Hello World!
                        Return()
                End Function

Comments (0)

You don't have permission to comment on this page.