GetMoonRadius: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|Get the moon radius as a float value.}} {{FuncSyntax|GetMoonRadius()}} {{FuncParameters}} {{FuncNoParam}} {{FuncReturnValue|..."
 
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPlayerSpawn", function()
    local radius = GetMoonRadius()
    AddPlayerChat("Moon radius: "..radius)
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
* [[SetMoonRadius]]
* [[SetMoonRadius]]

Latest revision as of 11:25, 1 September 2020

GetMoonRadius

Type: Function
Context: Client
Introduced: v1.0

Description

Get the moon radius as a float value.

Syntax

GetMoonRadius()

Parameters

  • This function has no parameters.

Return Value

  • Returns true.

Example

AddEvent("OnPlayerSpawn", function()
    local radius = GetMoonRadius()
    AddPlayerChat("Moon radius: "..radius)
end)

See also