Template:World functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(13 intermediate revisions by 5 users not shown)
Line 1: Line 1:
*[[areTrafficLightsLocked]]
<includeonly>
*[[getAircraftMaxVelocity]]
<ul>
*[[getCloudsEnabled]]
{{#if: {{{1|}}}
*[[getFarClipDistance]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getFogDistance]]
|
*[[getGameSpeed]]
    <!-- CLIENT functions -->
*[[getGravity]]
    <li>[[createSWATRope]]</li>
*[[getHeatHaze]]
    <li>[[getBirdsEnabled]]</li>
*[[getJetpackMaxHeight]]
    {{New feature/item|3.0161|1.6.0|22188|
*[[getJetpackWeaponEnabled]]
    <li>[[getColorFilter]]</li>
*[[getMinuteDuration]]
    }}
*[[getMoonSize]]
    <li>[[getCoronaReflectionsEnabled]]</li>
*[[getOcclusionsEnabled]]
    <li>[[getGarageBoundingBox]]</li>
*[[getRainLevel]]
    <li>[[getGaragePosition]]</li>
*[[getSkyGradient]]
    <li>[[getGarageSize]]</li>
*[[getSunColor]]
    <li>[[getGroundPosition]]</li>
*[[getSunSize]]
    <li>[[getInteriorFurnitureEnabled]]</li>
*[[getTime]]
    <li>[[getNearClipDistance]]</li>
*[[getTrafficLightState]]
    <li>[[getPedsLODDistance]]</li>
*[[getWeather]]
    <li>[[getRoofPosition]]</li>
*[[getWindVelocity]]
    <li>[[getScreenFromWorldPosition]]</li>
*[[getZoneName]]
    <li>[[getVehiclesLODDistance]]</li>
*[[isGarageOpen]]
    <li>[[getWorldFromScreenPosition]]</li>
*[[removeWorldModel]]
    {{New feature/item|3.0161|1.6.0|22592|
{{Added feature/item|3.0160|1.5.9|1.5.8|20718|
    <li>[[getWorldProperty]]</li>
*[[resetColorFilter]]
    }}
    <li>[[isAmbientSoundEnabled]]</li>
    <li>[[isLineOfSightClear]]</li>
    {{New feature/item|3.0161|1.6.0|22676|
    <li>[[isTimeFrozen]]</li>
    }}
    {{New feature/item|3.0161|1.6.0|22721|
    <li>[[isVolumetricShadowsEnabled]]</li>
    }}
    <li>[[isWorldSoundEnabled]]</li>
    {{New feature/item|3.0161|1.6.0|22219|
    <li>[[processLineAgainstMesh]]</li>
    }}
    <li>[[processLineOfSight]]</li>
    <li>[[resetAmbientSounds]]</li>
    <li>[[resetBlurLevel]]</li>
    <li>[[resetColorFilter]]</li>
    <li>[[resetCoronaReflectionsEnabled]]</li>
    <li>[[resetNearClipDistance]]</li>
    <li>[[resetPedsLODDistance]]</li>
    {{New feature/item|3.0161|1.6.0|22676|
    <li>[[resetTimeFrozen]]</li>
    }}
    {{New feature/item|3.0161|1.6.0|22721|
    <li>[[resetVolumetricShadows]]</li>
    }}
    <li>[[resetVehiclesLODDistance]]</li>
    {{New feature/item|3.0161|1.6.0|22592|
    <li>[[resetWorldProperty]]</li>
    }}
    <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>
    }}
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[getJetpackWeaponEnabled]]</li>
    <li>[[setJetpackWeaponEnabled]]</li>
    }}
  }}
</br>
}}
}}
*[[resetFarClipDistance]]
<!-- SHARED functions-->
*[[resetFogDistance]]
<li>[[areTrafficLightsLocked]]</li>
*[[resetHeatHaze]]
<li>[[getAircraftMaxHeight]]</li>
*[[resetMoonSize]]
<li>[[getAircraftMaxVelocity]]</li>
*[[resetRainLevel]]
<li>[[getCloudsEnabled]]</li>
*[[resetSkyGradient]]
<li>[[getFarClipDistance]]</li>
*[[resetSunColor]]
<li>[[getFogDistance]]</li>
*[[resetSunSize]]
<li>[[getGameSpeed]]</li>
*[[resetWindVelocity]]
<li>[[getGravity]]</li>
*[[restoreAllWorldModels]]
<li>[[getHeatHaze]]</li>
*[[restoreWorldModel]]
<li>[[getInteriorSoundsEnabled]]</li>
*[[setAircraftMaxVelocity]]
<li>[[getJetpackMaxHeight]]</li>
*[[setCloudsEnabled]]
<li>[[getMinuteDuration]]</li>
{{Added feature/item|3.0160|1.5.9|1.5.8|20718|
<li>[[getMoonSize]]</li>
*[[setColorFilter]]
<li>[[getOcclusionsEnabled]]</li>
}}
<li>[[getRainLevel]]</li>
*[[setFarClipDistance]]
<li>[[getSunColor]]</li>
*[[setFogDistance]]
<li>[[getSunSize]]</li>
*[[setGameSpeed]]
<li>[[getTime]]</li>
*[[setGarageOpen]]
<li>[[getTrafficLightState]]</li>
*[[setGravity]]
<li>[[getWeather]]</li>
*[[setHeatHaze]]
<li>[[getWindVelocity]]</li>
*[[setInteriorSoundsEnabled]]
<li>[[getSkyGradient]]</li>
*[[setJetpackWeaponEnabled]]
<li>[[getPlayerBlurLevel]]</li>
*[[setMinuteDuration]]
{{New items|3.0161|1.6.0|
*[[setMoonSize]]
<li>[[isWorldSpecialPropertyEnabled]]</li>
*[[setOcclusionsEnabled]]
|22195}}
*[[setRainLevel]]
<li>[[getZoneName]]</li>
*[[setSkyGradient]]
<li>[[isGarageOpen]]</li>
*[[setSunColor]]
<li>[[removeWorldModel]]</li>
*[[setSunSize]]
<li>[[resetFarClipDistance]]</li>
*[[setTime]]
<li>[[resetFogDistance]]</li>
*[[setTrafficLightState]]
<li>[[resetHeatHaze]]</li>
*[[setTrafficLightsLocked]]
<li>[[resetMoonSize]]</li>
*[[setWeather]]
<li>[[resetRainLevel]]</li>
*[[setWeatherBlended]]
<li>[[resetSkyGradient]]</li>
*[[setWindVelocity]]
<li>[[resetSunColor]]</li>
<noinclude>[[Category:Functions templates]]</noinclude>
<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 13:12, 23 October 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.