SetMoonRadius: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|radius|The radius between 0.0 | {{FuncParam|radius|The radius between 0.0 and 10.0, default: 1.0}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true'''.}} | ||
== Example == | == Example == | ||
Line 18: | Line 18: | ||
{{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)