RU/getGameSpeed: Difference between revisions
Jump to navigation
Jump to search
(Created page with '{{RU/Server client function}} __NOTOC__ This function gets the current game speed value. ==Syntax== <syntaxhighlight lang="lua">int getGameSpeed()</syntaxhighlight> ===Returns=== Returns a ''int''. ==Exa…') |
No edit summary |
||
Line 1: | Line 1: | ||
{{RU/Server client function}} | {{RU/Server client function}} | ||
__NOTOC__ | __NOTOC__ | ||
Эта функция показывает скорость игры на данный момент. | |||
== | ==Использование== | ||
<syntaxhighlight lang="lua">int getGameSpeed()</syntaxhighlight> | <syntaxhighlight lang="lua">int getGameSpeed()</syntaxhighlight> | ||
Line 9: | Line 9: | ||
Returns a ''int''. | Returns a ''int''. | ||
== | ==Пример== | ||
<section name="Server and Client" class="both" show="true"> | <section name="Server and Client" class="both" show="true"> | ||
Данный пример добавляет команду "gamespeed", которая показывает скорость игры на данный момент. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function gamespeedvalue ( ) | function gamespeedvalue ( ) | ||
Line 21: | Line 21: | ||
</section> | </section> | ||
== | ==Примечание== | ||
{{RU/World functions}} | {{RU/World functions}} |
Revision as of 17:05, 6 March 2010
Эта функция показывает скорость игры на данный момент.
Использование
int getGameSpeed()
Returns
Returns a int.
Пример
Click to collapse [-]
Server and ClientДанный пример добавляет команду "gamespeed", которая показывает скорость игры на данный момент.
function gamespeedvalue ( ) local speed = getGameSpeed ( ) outputChatbox ( "Gamespeed is currently set to " .. speed .. "." ) end addCommandHandler ( "gamespeed", gamespeedvalue )
Примечание
- areTrafficLightsLocked
- getCloudsEnabled
- getGameSpeed
- getGravity
- getHeatHaze
- getJetpackMaxHeight
- getMinuteDuration
- getSkyGradient
- getTime
- getTrafficLightState
- getVehiclesLODDistance
- getWeather
- getZoneName
- isGarageOpen
- resetSkyGradient
- resetHeatHaze
- setCloudsEnabled
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setMinuteDuration
- setSkyGradient
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setVehiclesLODDistance
- setWeather
- setWeatherBlended
- setInteriorSoundsEnabled
- getInteriorSoundsEnabled
- setRainLevel
- getRainLevel
- resetRainLevel
- setSunSize
- getSunSize
- resetSunSize
- setSunColor
- getSunColor
- resetSunColor
- setWindVelocity
- getWindVelocity
- resetWindVelocity
- setFarClipDistance
- getFarClipDistance
- resetFarClipDistance
- setFogDistance
- getFogDistance
- resetFogDistance
- removeWorldModel
- restoreWorldModel
- restoreAllWorldModels
- setOcclusionsEnabled
- getOcclusionsEnabled
- setJetpackWeaponEnabled
- getJetpackWeaponEnabled
- setAircraftMaxVelocity
- getAircraftMaxVelocity
- setMoonSize
- getMoonSize
- resetMoonSize