From 0a965300e7387e4991c5e43b45ac453703a9f90d Mon Sep 17 00:00:00 2001 From: rainlizard Date: Fri, 13 Dec 2019 18:35:29 +1100 Subject: doc: Document what happens to old script with Object.set_script() --- doc/classes/Object.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/classes') 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 @@ 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. -- cgit v1.2.3