This shows you the differences between two versions of the page.
4rpl:commands:registerscriptvar [2021/02/15 18:25] – created virgilw | 4rpl:commands:registerscriptvar [2024/03/29 09:11] (current) – page removed Karsten75 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~NOTOC~~ | ||
- | < | ||
- | :!: Available in version 1.3 and later. | ||
- | ====== RegisterScript====== | ||
- | RegisterScript(< | ||
- | |||
- | ===== Description ===== | ||
- | Registers the current script instance with a name. This name can be used with [[GetRegisteredScriptVar]]. If the same name is used as another script instance, this call will deregister the other script instance and replace it with the new one. A script on a unit in a unique instance. Each global script instance is also unique. Note that registering a script is NOT persistent. It will not be saved in a save game file. You must reregister a script. | ||
- | |||
- | ===== Examples ===== | ||
- | <code 4rpl> | ||
- | RegisterScript(" | ||
- | </ | ||
- | |||
- | < |