Get your own free workspace
View
 

ActorIsHuman

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

 

ActorIsHuman

Usage:

                ActorIsHuman(Actor)

Description:

The ActorIsHuman command returns 1 if the specified actor is a human player, or 0 if it is an NPC.

Example:

                Function Main()
                        Human = ActorIsHuman(Actor())
                        If (Human == 1)
                                Output(Actor(), "You are a human player.")
                        Else
                                // Don't bother sending a message, NPCs can't read them anyway!
                        EndIf
                        Return()
                End Function

Comments (0)

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