summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-06 14:09:36 +0100
committerGitHub <noreply@github.com>2020-01-06 14:09:36 +0100
commitc3af23ff5e20858cfaf6037ecd055f4e1ad35dc7 (patch)
treec965c7998ccc71929bb953c99975758e2297cc7c
parent8aea5decc6f328d0fc6eeebdc076d20130bf5794 (diff)
parent0a965300e7387e4991c5e43b45ac453703a9f90d (diff)
Merge pull request #34322 from rainlizard/set_script-variables
set_script() detailing what happens to variables
-rw-r--r--doc/classes/Object.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml
index 1a72ba60ab..d063bd81e7 100644
--- a/doc/classes/Object.xml
+++ b/doc/classes/Object.xml
@@ -460,6 +460,7 @@
</argument>
<description>
Assigns a script to the object. Each object can have a single script assigned to it, which are used to extend its functionality.
+ If the object already had a script, the previous script instance will be freed and its variables and state will be lost. The new script's [method _init] method will be called.
</description>
</method>
<method name="to_string">