ActorGlobal
Usage:
ActorGlobal(Actor, ID)
Description:
The ActorGlobal command returns 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.