GetAllText3D: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|GetAllText3D()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|__EDIT_ME__}} == Example =..."
 
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Get all text 3D on the server. Useful for loops.}}


{{FuncSyntax|GetAllText3D()}}
{{FuncSyntax|GetAllText3D()}}
Line 8: Line 8:
{{FuncNoParam}}
{{FuncNoParam}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|Returns a table of all text 3D.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
function destroyAll3DTexts()
    for index, text in ipairs(GetAllText3D()) do
        DestroyText3D(text)
    end
end
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
{{Text3DFunctions}}

Latest revision as of 14:03, 10 November 2021

GetAllText3D

Type: Function
Context: Server
Introduced: v1.0

Description

Get all text 3D on the server. Useful for loops.

Syntax

GetAllText3D()

Parameters

  • This function has no parameters.

Return Value

  • Returns a table of all text 3D.

Example

function destroyAll3DTexts()
    for index, text in ipairs(GetAllText3D()) do 
        DestroyText3D(text)
    end
end

See also