SetText3DVisibility: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
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 make it visible 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>
SetText3DVisbility(pickupId, playerId, true)
SetText3DVisbility(pickupId, playerId, false)
</syntaxhighlight>
</syntaxhighlight>


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

Revision as of 16:03, 11 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 make it visible for the player.

Return Value

  • Returns true on success.

Example

SetText3DVisbility(pickupId, playerId, false)

See also