Template:World functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Undo last change (setInteriorFurnitureEnabled doesn't exist serverside))
mNo edit summary
 
(20 intermediate revisions by 9 users not shown)
Line 1: Line 1:
*[[areTrafficLightsLocked]]
<includeonly>
*[[getCloudsEnabled]]
<ul>
*[[getGameSpeed]]
{{#if: {{{1|}}}
*[[getGravity]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getHeatHaze]]
|
*[[getJetpackMaxHeight]]
    <!-- CLIENT functions -->
*[[getMinuteDuration]]
    <li>[[createSWATRope]]</li>
*[[getSkyGradient]]
    <li>[[getBirdsEnabled]]</li>
*[[getTime]]
    {{New feature/item|3.0161|1.6.0|22188|
*[[getTrafficLightState]]
    <li>[[getColorFilter]]</li>
*[[getWeather]]
    }}
*[[getZoneName]]
    <li>[[getCoronaReflectionsEnabled]]</li>
*[[isGarageOpen]]
    <li>[[getGarageBoundingBox]]</li>
*[[resetSkyGradient]]
    <li>[[getGaragePosition]]</li>
*[[resetHeatHaze]]
    <li>[[getGarageSize]]</li>
*[[setCloudsEnabled]]
    <li>[[getGroundPosition]]</li>
*[[setGameSpeed]]
    <li>[[getInteriorFurnitureEnabled]]</li>
*[[setGarageOpen]]
    <li>[[getNearClipDistance]]</li>
*[[setGravity]]
    <li>[[getPedsLODDistance]]</li>
*[[setHeatHaze]]
    <li>[[getRoofPosition]]</li>
*[[setMinuteDuration]]
    <li>[[getScreenFromWorldPosition]]</li>
*[[setSkyGradient]]
    <li>[[getVehiclesLODDistance]]</li>
*[[setTime]]
    <li>[[getWorldFromScreenPosition]]</li>
*[[setTrafficLightState]]
    {{New feature/item|3.0161|1.6.0|22592|
*[[setTrafficLightsLocked]]
    <li>[[getWorldProperty]]</li>
*[[setWeather]]
    }}
*[[setWeatherBlended]]
    <li>[[isAmbientSoundEnabled]]</li>
*[[setInteriorSoundsEnabled]]
    <li>[[isLineOfSightClear]]</li>
*[[getInteriorSoundsEnabled]]
    {{New feature/item|3.0161|1.6.0|22676|
*[[setRainLevel]]
    <li>[[isTimeFrozen]]</li>
*[[getRainLevel]]
    }}
*[[resetRainLevel]]
    {{New feature/item|3.0161|1.6.0|22721|
*[[setSunSize]]
    <li>[[isVolumetricShadowsEnabled]]</li>
*[[getSunSize]]
    }}
*[[resetSunSize]]
    <li>[[isWorldSoundEnabled]]</li>
*[[setSunColor]]
    {{New feature/item|3.0161|1.6.0|22219|
*[[getSunColor]]
    <li>[[processLineAgainstMesh]]</li>
*[[resetSunColor]]
    }}
*[[setWindVelocity]]
    <li>[[processLineOfSight]]</li>
*[[getWindVelocity]]
    <li>[[resetAmbientSounds]]</li>
*[[resetWindVelocity]]
    <li>[[resetBlurLevel]]</li>
*[[setFarClipDistance]]
    <li>[[resetColorFilter]]</li>
*[[getFarClipDistance]]
    <li>[[resetCoronaReflectionsEnabled]]</li>
*[[resetFarClipDistance]]
    <li>[[resetNearClipDistance]]</li>
*[[setFogDistance]]
    <li>[[resetPedsLODDistance]]</li>
*[[getFogDistance]]
    {{New feature/item|3.0161|1.6.0|22676|
*[[resetFogDistance]]
    <li>[[resetTimeFrozen]]</li>
*[[removeWorldModel]]
    }}
*[[restoreWorldModel]]
    {{New feature/item|3.0161|1.6.0|22721|
*[[restoreAllWorldModels]]
    <li>[[resetVolumetricShadows]]</li>
*[[setOcclusionsEnabled]]
    }}
*[[getOcclusionsEnabled]]
    <li>[[resetVehiclesLODDistance]]</li>
{{New feature/item|3.0132|1.3.1|4352|
    {{New feature/item|3.0161|1.6.0|22592|
*[[setJetpackWeaponEnabled]]
    <li>[[resetWorldProperty]]</li>
*[[getJetpackWeaponEnabled]]
    }}
    <li>[[resetWorldSounds]]</li>
    <li>[[setAmbientSoundEnabled]]</li>
    <li>[[setBirdsEnabled]]</li>
    <li>[[setColorFilter]]</li>
    <li>[[setCoronaReflectionsEnabled]]</li>
    <li>[[setInteriorFurnitureEnabled]]</li>
    <li>[[setInteriorSoundsEnabled]]</li>
    <li>[[setNearClipDistance]]</li>
    <li>[[setPedsLODDistance]]</li>
    {{New feature/item|3.0161|1.6.0|22676|
    <li>[[setTimeFrozen]]</li>
    }}
    <li>[[setVehiclesLODDistance]]</li>
    {{New feature/item|3.0161|1.6.0|22592|
    <li>[[setWorldProperty]]</li>
    }}
    <li>[[setWorldSoundEnabled]]</li>
    {{New feature/item|3.0161|1.6.0|21902|
    <li>[[setGrainLevel]]</li>
    }}
    {{New feature/item|3.0161|1.6.0|21902|
    <li>[[setGrainMultiplier]]</li>
    }}
    <li>[[testLineAgainstWater]]</li>
    {{New feature/item|3.0161|1.6.0|22721|
    <li>[[setVolumetricShadowsEnabled]]</li>
    }}
    {{New items|3.0161|1.6.0|
    <li>[[testSphereAgainstWorld]]</li>
    |22837}}
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[getJetpackWeaponEnabled]]</li>
    <li>[[setJetpackWeaponEnabled]]</li>
    }}
  }}
</br>
}}
}}
{{New feature/item|3.0132|1.3.1|5000|
<!-- SHARED functions-->
*[[setAircraftMaxVelocity]]
<li>[[areTrafficLightsLocked]]</li>
*[[getAircraftMaxVelocity]]
<li>[[getAircraftMaxHeight]]</li>
}}
<li>[[getAircraftMaxVelocity]]</li>
{{New feature/item|3.0132|1.3.1|5063|
<li>[[getCloudsEnabled]]</li>
* [[setMoonSize]]
<li>[[getFarClipDistance]]</li>
* [[getMoonSize]]
<li>[[getFogDistance]]</li>
* [[resetMoonSize]]
<li>[[getGameSpeed]]</li>
}}
<li>[[getGravity]]</li>
<noinclude>[[Category:Functions templates]]</noinclude>
<li>[[getHeatHaze]]</li>
<li>[[getInteriorSoundsEnabled]]</li>
<li>[[getJetpackMaxHeight]]</li>
<li>[[getMinuteDuration]]</li>
<li>[[getMoonSize]]</li>
<li>[[getOcclusionsEnabled]]</li>
<li>[[getRainLevel]]</li>
<li>[[getSunColor]]</li>
<li>[[getSunSize]]</li>
<li>[[getTime]]</li>
<li>[[getTrafficLightState]]</li>
<li>[[getWeather]]</li>
<li>[[getWindVelocity]]</li>
<li>[[getSkyGradient]]</li>
<li>[[getPlayerBlurLevel]]</li>
{{New items|3.0161|1.6.0|
<li>[[isWorldSpecialPropertyEnabled]]</li>
|22195}}
<li>[[getZoneName]]</li>
<li>[[isGarageOpen]]</li>
<li>[[removeWorldModel]]</li>
<li>[[resetFarClipDistance]]</li>
<li>[[resetFogDistance]]</li>
<li>[[resetHeatHaze]]</li>
<li>[[resetMoonSize]]</li>
<li>[[resetRainLevel]]</li>
<li>[[resetSkyGradient]]</li>
<li>[[resetSunColor]]</li>
<li>[[resetSunSize]]</li>
<li>[[resetWindVelocity]]</li>
<li>[[restoreAllWorldModels]]</li>
<li>[[restoreWorldModel]]</li>
<li>[[setAircraftMaxHeight]]</li>
<li>[[setAircraftMaxVelocity]]</li>
<li>[[setCloudsEnabled]]</li>
<li>[[setFarClipDistance]]</li>
<li>[[setFogDistance]]</li>
<li>[[setGameSpeed]]</li>
<li>[[setGarageOpen]]</li>
<li>[[setGravity]]</li>
<li>[[setHeatHaze]]</li>
<li>[[setInteriorSoundsEnabled]]</li>
<li>[[setMinuteDuration]]</li>
<li>[[setMoonSize]]</li>
<li>[[setOcclusionsEnabled]]</li>
<li>[[setRainLevel]]</li>
<li>[[setSkyGradient]]</li>
<li>[[setSunColor]]</li>
<li>[[setSunSize]]</li>
<li>[[setTime]]</li>
<li>[[setTrafficLightState]]</li>
<li>[[setTrafficLightsLocked]]</li>
<li>[[setWeather]]</li>
<li>[[setWeatherBlended]]</li>
<li>[[setWindVelocity]]</li>
<li>[[setJetpackMaxHeight]]</li>
<li>[[setPlayerBlurLevel]]</li>
{{New items|3.0161|1.6.0|
<li>[[setWorldSpecialPropertyEnabled]]</li>
|22195}}
{{New items|3.0161|1.6.0|
<li>[[resetWorldProperties]]</li>
|22741}}
</ul>
</includeonly>
 
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 01:55, 22 December 2024


The template contains a list of functions. It accepts 1 parameter, which specifies whether the functions should be displayed for server or client. Regardless of the parameter, a list of shared functions will also be displayed

Example: {{Camera functions|client}} will display a list of client-side functions, and below it a list of shared functions, similarly for the server.