Get your own free workspace
View
 

SetActorGlobal

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

 

SetActorGlobal

Usage:

                SetActorGlobal(Actor, ID, Value)

Description:

The SetActorGlobal command allows you to set the value of a given actor global variable. IDs range from 0 to 9. Each actor has 10 global variables, which can be accessed from any script. This is useful for storing data on a per-actor basis.

Example:

                Function Main()
                        SetActorGlobal(Actor(), 2, 5)
                        Result = ActorGlobal(Actor(), 2)
                        Output(Actor(), Result) // Displays 5
                        Return()
                End Function

Comments (0)

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