IsWorldSpecialPropertyEnabled: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
Fernando187 (talk | contribs) (Removed really weird and nonsense example) |
||
(9 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{ | {{Shared function}} | ||
{{New feature/item|3.0161|1.6.0|22195|Added also as a server-side function. Previously only available as a client-side function.}} | |||
Checks if a special world property (cheat) is enabled or not. | Checks if a special world property (cheat) is enabled or not. | ||
Line 6: | Line 8: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool isWorldSpecialPropertyEnabled ( string propname )</syntaxhighlight> | <syntaxhighlight lang="lua">bool isWorldSpecialPropertyEnabled ( string propname )</syntaxhighlight> | ||
{{OOP||||setWorldSpecialPropertyEnabled}} | |||
===Required Arguments=== | ===Required Arguments=== | ||
*'''propname:''' the name of the property to retrieve. Possible values are | *'''propname:''' the name of the property to retrieve. Possible values are listed on [[SetWorldSpecialPropertyEnabled]]. | ||
===Returns=== | ===Returns=== | ||
Line 18: | Line 17: | ||
==Example== | ==Example== | ||
{{Needs Example}} | |||
==See Also== | ==See Also== | ||
{{ | {{World functions}} |
Latest revision as of 12:42, 9 November 2024
Checks if a special world property (cheat) is enabled or not.
Syntax
bool isWorldSpecialPropertyEnabled ( string propname )
OOP Syntax Help! I don't understand this!
- Counterpart: setWorldSpecialPropertyEnabled
Required Arguments
- propname: the name of the property to retrieve. Possible values are listed on SetWorldSpecialPropertyEnabled.
Returns
Returns true if the property is enabled, false if it is disabled or the specified property name is invalid.
Example
Script Example Missing Function IsWorldSpecialPropertyEnabled needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
See Also
- areTrafficLightsLocked
- getAircraftMaxHeight
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getInteriorSoundsEnabled
- getJetpackMaxHeight
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getSkyGradient
- getPlayerBlurLevel
- 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
- setPlayerBlurLevel