This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
prpl:deleteglobal [2016/12/02 23:33] – external edit 127.0.0.1 | prpl:deleteglobal [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <- [[.: | + | <- [[.: |
- | ===== | + | ===== |
^Arguments^Result^Notation^ | ^Arguments^Result^Notation^ | ||
- | | | | [ - ] | | + | | none | none | [ - ] | |
=== Description === | === Description === | ||
+ | |||
+ | Deletes VARNAME from the global heap. It is now unassigned. Global variables can be accessed by any script on the map. | ||
=== Examples === | === Examples === | ||
- | < | + | < |
+ | # In one script: | ||
+ | 42 -> | ||
+ | # In any script on the same map after that point: | ||
+ | --*myGlobalVariable | ||
+ | < | ||
+ | # Shows 0 in the debug window. | ||
+ | </ | ||