Get your own free workspace
View
 

ActorUnderWater

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

 

ActorUnderWater

Usage:

                ActorUnderWater(Actor)

Description:

The ActorUnderWater command returns 1 if the specified actor is swimming in any water area, or 0 if it is not.

Example:

                Function Main()
                        Swimming = ActorUnderWater(Actor())
                        If (Swimming == 1)
                                Output(Actor(), "You are swimming.")
                        Else
                                Output(Actor(), "You aren't swimming.")
                        EndIf
                        Return()
                End Function

Comments (0)

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