Lua API
On this page
DecalD3DObj
Inherits from
An DecalD3DObj instance.
Fields:
Autoscale boolean
Set to true to autoscale the object. TODO: what exactly does this mean?
Color number
The primary color
Color2 number
The secondary color?
HBounce number
Horizontal bounce
PBounce number
Vertical bounce
ScaleX number
X scale modifier
ScaleY number
Y scale modifier
ScaleZ number
Z scale modifier
Visible boolean
Wether or not this d3d object is visible
Methods:
Anchor(lat: number, lng: number, z: number) : nil
Anchor this object to the specified coordinates.
Name | Type | Default | Summary |
lat | number | The worldspace latitude to point at | |
lng | number | The worldspace longitude to point at | |
z | number | The worldspace z (altitude) to point at |
Returns:nil
Anchor(objectId: number, height: number, xOffset: number, yOffset: number, zOffset: number) : nil
Anchor this object to the specified object.
Name | Type | Default | Summary |
objectId | number | The id of the object to anchor this to | |
height | number | The height to anchor at | |
xOffset | number | X offset | |
yOffset | number | Y offset | |
zOffset | number | Z offset |
Returns:nil
Dispose() : nil
Destroy this d3d obj
Returns:nil
GetPropertyKeys() : string[]
Returns a list of strings of all public property / field names. Useful for reflection on UserData in lua scripts
Returns:string[]
OrientToCamera(verticalTilt: boolean) : nil
Orient this object to the camera
Name | Type | Default | Summary |
verticalTilt | boolean | Wether to also tilt vertically |
Returns:nil