Squirrel/Client/Functions/Misc/SetNametagDrawDistance
From Liberty Unleashed Wiki
(Difference between revisions)
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
Default Nametag Draw Distance = 100.0
[edit] Syntax
SetNametagDrawDistance(float)
[edit] Arguments
- float - The distance of render player nametags.
[edit] Example
This example disable nametags for all players.
function onScriptLoad() { SetNametagDrawDistance(0.0); }
[edit] Notes
The call onScriptLoad was used in in this example. More info about this in the corresponding page.