User Tools

Site Tools


prpl:writeglobal

This is an old revision of the document!


<- PRPL reference <- Everything Else 2

->*VARNAME

ArgumentsResultNotation
value none [ x1 - ]

Description

Stores value x1 in global variable VARNAME. Global variables can be accessed by any script on the map.

Examples

# In one script:
42 ->*myGlobalVariable
# In any script on the same map after that point:
<-*myGlobalVariable trace
# Shows 42 in the debug window.
		s1 = command.data.GetString(); 
 
prpl/writeglobal.1508880534.txt.gz · Last modified: 2025/02/14 14:56 (external edit)