Do not start editor id's with numbers or scripts will fail to work correctly.
A Ref variable can contain either an Object or a Reference.Ī good amount of scripting functions are performed on a Calling Reference. The Reference Properties window of a Door object ScriptingĪ Reference is not the same thing as a Ref Variable. Different references of the same object can be set differently. Different types of objects have different reference data on their references. It's unique for each reference, and is not stored with the object information in the Object Window.ĭouble click on an object in the Render Window or right click it in the object list and select edit to view the reference data. The simplest example is the position data. However, references also hold some data that is unique to them.
If any of the properties of an object are changed in the Object Window, all its references are also changed in-game.
A reference is an instance of an object that has been placed in the Render Window, or which is spawned dynamically either by the game or a Function.Įach object can have multiple references (the count of references is displayed in the Object Window).