Lua API
On this page
ACDecalD3D
Inherits from
ACClient stuff, for scripting
Constructors:
New() :
Methods:
ColorToVec4(col: number) : Vector4
Dispose() : nil
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[]
MarkCoordsWith2DText(lat: number, lng: number, z: number, text: string, color: number, font?: string = Arial) : DecalD3DObj
Draw 2D text at the specified coordinates. Dispose the returned DecalD3DObj to destroy it.
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 | |
text | string | The text to draw | |
color | number | The color of the text, #AARRGGBB | |
font | string | Arial | The name of the font to use |
Returns:DecalD3DObj
MarkCoordsWith3DText(lat: number, lng: number, z: number, text: string, color: number, font?: string = Arial) : DecalD3DObj
Draw 3D text at the specified coordinates. Dispose the returned DecalD3DObj to destroy it.
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 | |
text | string | The text to draw | |
color | number | The color of the text, #AARRGGBB | |
font | string | Arial | The name of the font to use |
Returns:DecalD3DObj