SetText3DDimension: Difference between revisions

From Onset Developer Wiki
No edit summary
(Completed the page)
 
Line 11: Line 11:
{{FuncParam|dimension|The new dimension to set.}}
{{FuncParam|dimension|The new dimension to set.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns '''true''' on success.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang='Lua'>
local text3d = CreateText3D("Only visible in Dimension 10", 12, -199349, -39353, 1021, 0.0, 0.0, 0.0)
SetText3DDimension(text3d, 10)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:Text3DFunctions}}
{{Template:Text3DFunctions}}

Latest revision as of 14:36, 21 February 2020

SetText3DDimension

Type: Function
Context: Server
Introduced: v1.0

Description

Sets the dimension of this text3d. Players can only see 3D texts in the same dimension.

  • Default dimension: 0
  • Maximum dimension: 4294967295

Syntax

SetText3DDimension(text3d, dimension)

Parameters

  • text3d
    The text3d identifier.
  • dimension
    The new dimension to set.

Return Value

  • This function returns true on success.

Example

local text3d = CreateText3D("Only visible in Dimension 10", 12, -199349, -39353, 1021, 0.0, 0.0, 0.0)
SetText3DDimension(text3d, 10)

See also