Skip to content

GameEntityScriptDefinition

14.24 Value struct

Class Documentation

Edit documentation

One script of a map entity and the values of its instance variables. When the entity spawns, the client creates an instance of Script for the entity. For each instance variable of the script, it evaluates the getter in InstanceVariableOverrides with the same key, or the default getter of the script if there is none.

Properties

InstanceVariableOverrides

Map<Hash, IScriptValueGet> = {}
Edit documentation

Getters for instance variables of the script, keyed by the same hash as the variable in the InstanceVariables of the script. Each one replaces the default of the variable for this entity. See IScriptValueGet.

Referenced by 2 classes · 2 properties