SetInteriorFurnitureEnabled: Difference between revisions
Jump to navigation
Jump to search
(changed version) |
(Partially undo revision 49396 by ThePiotrek (talk) - The template is appropiately used there, but made it hidden as it should be now) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function}} | ||
{{New feature/item|3. | {{New feature/item|3.0135|1.3.5|6101| | ||
This function | This function toggles furniture generation in interiors with the specified room ID. | ||
}} | }} | ||
Line 11: | Line 11: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''roomID:''' The room type which you want disable or enable furniture | *'''roomID:''' The room type which you want disable or enable the furniture in: | ||
** '''0''': shop | ** '''0''': shop | ||
** '''1''': office | ** '''1''': office | ||
Line 17: | Line 17: | ||
** '''3''': bedroom | ** '''3''': bedroom | ||
** '''4''': kitchen | ** '''4''': kitchen | ||
*'''enabled''': | *'''enabled''': A bool representing whether the interior furniture is enabled or disabled. | ||
===Returns=== | ===Returns=== | ||
Returns ''true'' if successful, ''false'' otherwise. | Returns ''true'' if successful, ''false'' otherwise. | ||
==Example== | |||
<section name="Client" class="client" show="true"> | |||
<syntaxhighlight lang="lua"> | |||
-- Disable furnishing for all rooms | |||
for i = 0, 4 do | |||
setInteriorFurnitureEnabled(i, false) | |||
end | |||
</syntaxhighlight> | |||
</section> | |||
==See Also== | ==See Also== | ||
{{World functions}} | {{World functions}} |
Latest revision as of 14:03, 4 October 2016
This function toggles furniture generation in interiors with the specified room ID.
Syntax
bool setInteriorFurnitureEnabled ( int roomID, bool enabled )
Required Arguments
- roomID: The room type which you want disable or enable the furniture in:
- 0: shop
- 1: office
- 2: lounge
- 3: bedroom
- 4: kitchen
- enabled: A bool representing whether the interior furniture is enabled or disabled.
Returns
Returns true if successful, false otherwise.
Example
Click to collapse [-]
Client-- Disable furnishing for all rooms for i = 0, 4 do setInteriorFurnitureEnabled(i, false) end
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