Dynamic

Base class for dynamics

Properties

Name Type Description
NameStringA String that represents the name of the object.
EnabledBooleanThe active state of the dynamic in the game world
RootDynamicGets the root parent of the object.
TagStringTag of the Dynamic. Can be used for anything.
PositionVector3A Vector3 that represents the object's position.
RotationVector3Gets/sets the rotation of the dynamic
LocalRotationVector3Gets/sets the local rotation of the dynamic
SizeVector3
ParentDynamic
TextureIDNumber
TextureTilingNumber
TextureTilingYNumber

Functions

Name Returns Description
SetParentVoid
LogVoid
IsABoolean
FindFirstChildDynamic
FindFirstChildOfClassDynamicReturns the first dynamic child of this object by its type (dynamic class).
FindFirstParentOfClassDynamicReturns the first dynamic parent of this object by its type (dynamic class).
MoveToVoidMove this Dynamic to the specified position. Set telelport to true to disable interpolation.
NetworkSyncVoidEnable/Disable the Networking code for this Dynamic
LookAtVoidLook towards the specified position
LocalToWorldPointVector3Converts a 3D point from local space to world space. Affected by the dynamic's scale.
CloneDynamicClone this object and return the new one.
GetChildrenTableRetrieve children from an object, optionally recursively.
ClearChildrenNumberRemoves all children and returns the number of dynamics removed from the object
DestroyVoidRemoves the dynamic from the game and all of its child dynamics
NewDynamicCreates a new instance of a dynamic according to the supplied class name
NewDynamicCreates a new instance of a dynamic according to class name and parents it to the dynamic parent

Events

Name Description
AncestryChanged