SetMoonRadius: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetMoonRadius(radius)}} {{FuncParameters}} {{FuncParam|radius|__EDIT_ME__}} {{FuncReturnValue|__E...")
 
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set the moon radius in float value.}}


{{FuncSyntax|SetMoonRadius(radius)}}
{{FuncSyntax|SetMoonRadius(radius)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|radius|__EDIT_ME__}}
{{FuncParam|radius|The radius between 0.0 (0%) to 1.0 (100%).}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPlayerSpawn", function()
SetMoonRadius(0.5) -- Set the moon size to half when the player spawns
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
* [[SetMoonShine]]
* [[SetMoonLightIntensity]]
* [[SetMoonRadius]]

Revision as of 03:58, 17 November 2019

SetMoonRadius

Type: Function
Context: Client
Introduced: v1.0

Description

Set the moon radius in float value.

Syntax

SetMoonRadius(radius)

Parameters

  • radius
    The radius between 0.0 (0%) to 1.0 (100%).

Return Value

  • __EDIT_ME__

Example

AddEvent("OnPlayerSpawn", function()
	SetMoonRadius(0.5) -- Set the moon size to half when the player spawns
end)

See also