RU/setGameSpeed: Difference between revisions
Jump to navigation
Jump to search
(Created page with '__NOTOC__ {{RU/Server client function}} Эта функция устанавливает скорость игры. ==Использование== <syntaxhighlight lang="lua">bool setGameSpeed…') |
No edit summary |
||
Line 12: | Line 12: | ||
Returns ''true'' if the gamespeed was set successfully, ''false'' otherwise. | Returns ''true'' if the gamespeed was set successfully, ''false'' otherwise. | ||
== | ==Пример== | ||
<section name="Server" class="server" show="true"> | <section name="Server" class="server" show="true"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> |
Revision as of 10:48, 7 March 2010
Эта функция устанавливает скорость игры.
Использование
bool setGameSpeed ( int value )
Обязательные величины
- value: Значение скорости игры ( 0 - 10)
Returns
Returns true if the gamespeed was set successfully, false otherwise.
Пример
Click to collapse [-]
ServeraddCommandHandler("setgamespeed", function(sourcePlayer, command, value) setGameSpeed(tonumber(value)) end )
Click to collapse [-]
ClientaddCommandHandler("setgamespeed", function(command, value) setGameSpeed(tonumber(value)) end )
Примечание
- 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