Squirrel/Client/Functions/Misc/SetNametagDrawDistance

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Squirrel/Title|SetNametagDrawDistance}} Default Nametag Draw Distance = 100.0 == Syntax == <code>SetNametagDrawDistance(float)</code> == Arguments == * '''float''' - The...")
 
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 20: Line 7:
 
}
 
}
 
</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}}
 

Revision as of 14:21, 3 September 2017


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

Variants
Actions
Navigation
scripting
Toolbox