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 |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the moon radius in float value.}} | ||
{{FuncSyntax|SetMoonRadius(radius)}} | {{FuncSyntax|SetMoonRadius(radius)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|radius| | {{FuncParam|radius|The radius between 0.0 and 10.0, default: 1.0}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true'''.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddEvent("OnPlayerSpawn", function() | |||
SetMoonRadius(0.5) -- Set the moon size to half when the player spawns | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[GetMoonRadius]] |
Latest revision as of 17:56, 29 August 2020
Description
Set the moon radius in float value.
Syntax
SetMoonRadius(radius)
Parameters
- radius
The radius between 0.0 and 10.0, default: 1.0
Return Value
- Returns true.
Example
AddEvent("OnPlayerSpawn", function()
SetMoonRadius(0.5) -- Set the moon size to half when the player spawns
end)