SetText3DVisibility: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|Set the text3d visibility for players. If you use this function then you will have to call this function on every player who sh...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Server|1.0}}
{{Info|Function|Server|1.0}}


{{FuncDescription|Set the text3d visibility for players. If you use this function then you will have to call this function on every player who should see this text3d.}}
{{FuncDescription|Set the text3d visibility for players.}}


{{FuncSyntax|SetText3DVisibility(pickup, text3d, bVisible)}}
{{FuncSyntax|SetText3DVisibility(pickup, text3d, bVisible)}}
Line 8: Line 8:
{{FuncParam|text3d|The text3d identifier.}}
{{FuncParam|text3d|The text3d identifier.}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|player|The player identifier.}}
{{FuncParam|bVisible|'''true''' to make it visible.}}
{{FuncParam|bVisible|'''false''' to hide it for the player.}}


{{FuncReturnValue|Returns '''true''' on success.}}
{{FuncReturnValue|Returns '''true''' on success.}}
Line 14: Line 14:
== Example ==
== Example ==
<syntaxhighlight lang="Lua>
<syntaxhighlight lang="Lua>
__EDIT_ME__
SetText3DVisbility(pickupId, playerId, false)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{Template:PickupFunctions}}
{{Template:PickupFunctions}}

Latest revision as of 07:58, 13 July 2020

SetText3DVisibility

Type: Function
Context: Server
Introduced: v1.0

Description

Set the text3d visibility for players.

Syntax

SetText3DVisibility(pickup, text3d, bVisible)

Parameters

  • text3d
    The text3d identifier.
  • player
    The player identifier.
  • bVisible
    false to hide it for the player.

Return Value

  • Returns true on success.

Example

SetText3DVisbility(pickupId, playerId, false)

See also