SetSunSize: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Server client function}} This function is used to set the size of the sun. ==Syntax== <syntaxhighlight lang="lua"> bool setSunSize ( int Size ) </syntaxhighlight> ===Required Arguments=== *...") |
RushCuttle (talk | contribs) m (→Syntax) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setSunSize ( | bool setSunSize ( float Size ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''Size:''' The size you want | *'''Size:''' The size you want the sun to be in the sky. | ||
===Returns=== | ===Returns=== | ||
| Line 24: | Line 24: | ||
addCommandHandler("setsunsize", commandSetSunSize) | addCommandHandler("setsunsize", commandSetSunSize) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{World functions}} | {{World functions}} | ||
Latest revision as of 05:45, 2 February 2026
This function is used to set the size of the sun.
Syntax
bool setSunSize ( float Size )
Required Arguments
- Size: The size you want the sun to be in the sky.
Returns
Returns true if the size of the sun was set, false otherwise.
Example
This example lets any player set the size of the sun like /setsunsize 2
function commandSetSunSize(player, command, size)
local size = tonumber(size)
if (not size) then return end -- They didn't use a number
setSunSize(size)
end
addCommandHandler("setsunsize", commandSetSunSize)
See Also
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxHeight
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity
- setJetpackMaxHeight