diff options
author | rainlizard <ludorverr@gmail.com> | 2019-12-13 18:35:29 +1100 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-06 13:57:35 +0100 |
commit | 0a965300e7387e4991c5e43b45ac453703a9f90d (patch) | |
tree | 99d58e8f35d7dfc882f14e804dd5bcf5af2fba92 /doc/classes | |
parent | 845480497207839bef48997d152f00b60b6176a8 (diff) |
doc: Document what happens to old script with Object.set_script()
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Object.xml | 1 |
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"> |