User Tools

Site Tools


4rpl:commands:registerscriptvar

This is an old revision of the document!


Index

:!: Available in version 1.3 and later.

RegisterScript

RegisterScript(<-name)

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

RegisterScript("MyScript")

Index

4rpl/commands/registerscriptvar.1613431546.txt.gz · Last modified: 2021/02/15 18:25 by virgilw