Squirrel/Client/Functions/Misc/SetNametagDrawDistance

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
m (Undo revision 41687 by Kupka (talk))
 
Line 1: Line 1:
 +
{{Squirrel/Title|SetNametagDrawDistance}}
 +
Default Nametag Draw Distance = 100.0
  
 +
== Syntax ==
 +
 +
<code>SetNametagDrawDistance(float)</code>
 +
 +
== Arguments ==
 +
 +
* '''float''' - The distance of render player nametags.
 +
 +
== Example ==
 +
 +
This example disable nametags for all players.
  
 
<code lang="squirrel">
 
<code lang="squirrel">
Line 7: Line 20:
 
}
 
}
 
</code>
 
</code>
 +
 +
=== Notes ===
 +
 +
The call [[Squirrel/Client/Events/Misc/onScriptLoad|onScriptLoad]] was used in in this example. More info about this in the corresponding page.
 +
 +
== Related Functions ==
 +
 +
{{Squirrel/Client/Functions/Misc}}

Latest revision as of 18:34, 5 September 2017

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

Default Nametag Draw Distance = 100.0

[edit] Syntax

  1. SetNametagDrawDistance(float)

[edit] Arguments

  • float - The distance of render player nametags.

[edit] Example

This example disable nametags for all players.

  1.  
  2. function onScriptLoad()
  3. {
  4. SetNametagDrawDistance(0.0);
  5. }
  6.  

[edit] Notes

The call onScriptLoad was used in in this example. More info about this in the corresponding page.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox