Template:World functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(34 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{New feature|3.0110|1.1|
<includeonly>
* [[areTrafficLightsLocked]]
<ul>
}}
{{#if: {{{1|}}}
*[[getCloudsEnabled]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getGameSpeed]]
|
*[[getGravity]]
    <!-- CLIENT functions -->
{{New feature|3.0110|1.1|
    <li>[[createSWATRope]]</li>
* [[getHeatHaze]]
    <li>[[getBirdsEnabled]]</li>
* [[getJetpackMaxHeight]]
    {{New feature/item|3.0161|1.6.0|22188|
* [[getSkyGradient]]
    <li>[[getColorFilter]]</li>
}}
    }}
*[[getTime]]
    <li>[[getCoronaReflectionsEnabled]]</li>
{{New feature|3.0110|1.1|
    <li>[[getGarageBoundingBox]]</li>
* [[getTrafficLightState]]
    <li>[[getGaragePosition]]</li>
}}
    <li>[[getGarageSize]]</li>
*[[getWeather]]
    <li>[[getGroundPosition]]</li>
*[[getZoneName]]
    <li>[[getInteriorFurnitureEnabled]]</li>
*[[isGarageOpen]]
    <li>[[getNearClipDistance]]</li>
*[[resetSkyGradient]]
    <li>[[getPedsLODDistance]]</li>
{{New feature|3.0110|1.1|
    <li>[[getRoofPosition]]</li>
* [[resetHeatHaze]]
    <li>[[getScreenFromWorldPosition]]</li>
}}
    <li>[[getVehiclesLODDistance]]</li>
*[[setCloudsEnabled]]
    <li>[[getWorldFromScreenPosition]]</li>
*[[setGameSpeed]]
    {{New feature/item|3.0161|1.6.0|22592|
*[[setGarageOpen]]
    <li>[[getWorldProperty]]</li>
*[[setGravity]]
    }}
{{New feature|3.0110|1.1|
    <li>[[isAmbientSoundEnabled]]</li>
* [[setHeatHaze]]
    <li>[[isLineOfSightClear]]</li>
}}
    {{New feature/item|3.0161|1.6.0|22676|
*[[setMinuteDuration]]
    <li>[[isTimeFrozen]]</li>
*[[setSkyGradient]]
    }}
*[[setTime]]
    {{New feature/item|3.0161|1.6.0|22721|
{{New feature|3.0110|1.1|
    <li>[[isVolumetricShadowsEnabled]]</li>
* [[setTrafficLightState]]
    }}
* [[setTrafficLightsLocked]]
    <li>[[isWorldSoundEnabled]]</li>
}}
    {{New feature/item|3.0161|1.6.0|22219|
*[[setWeather]]
    <li>[[processLineAgainstMesh]]</li>
*[[setWeatherBlended]]
    }}
{{New feature|3.0110|1.1|
    <li>[[processLineOfSight]]</li>
*[[setAmbientSoundEnabled]]
    <li>[[resetAmbientSounds]]</li>
*[[isAmbientSoundEnabled]]
    <li>[[resetBlurLevel]]</li>
*[[resetAmbientSounds]]
    <li>[[resetColorFilter]]</li>
*[[setInteriorSoundsEnabled]]
    <li>[[resetCoronaReflectionsEnabled]]</li>
*[[getInteriorSoundsEnabled]]
    <li>[[resetNearClipDistance]]</li>
*[[setRainLevel]]
    <li>[[resetPedsLODDistance]]</li>
*[[getRainLevel]]
    {{New feature/item|3.0161|1.6.0|22676|
*[[resetRainLevel]]
    <li>[[resetTimeFrozen]]</li>
*[[setSunSize]]
    }}
*[[getSunSize]]
    {{New feature/item|3.0161|1.6.0|22721|
*[[resetSunSize]]
    <li>[[resetVolumetricShadows]]</li>
*[[setSunColor]]
    }}
*[[getSunColor]]
    <li>[[resetVehiclesLODDistance]]</li>
*[[resetSunColor]]
    {{New feature/item|3.0161|1.6.0|22592|
*[[setWindVelocity]]
    <li>[[resetWorldProperty]]</li>
*[[getWindVelocity]]
    }}
*[[resetWindVelocity]]
    <li>[[resetWorldSounds]]</li>
*[[setFarClipDistance]]
    <li>[[setAmbientSoundEnabled]]</li>
*[[getFarClipDistance]]
    <li>[[setBirdsEnabled]]</li>
*[[resetFarClipDistance]]
    <li>[[setColorFilter]]</li>
*[[setFogDistance]]
    <li>[[setCoronaReflectionsEnabled]]</li>
*[[getFogDistance]]
    <li>[[setInteriorFurnitureEnabled]]</li>
*[[resetFogDistance]]
    <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>
}}
}}
<!-- SHARED functions-->
<li>[[areTrafficLightsLocked]]</li>
<li>[[getAircraftMaxHeight]]</li>
<li>[[getAircraftMaxVelocity]]</li>
<li>[[getCloudsEnabled]]</li>
<li>[[getFarClipDistance]]</li>
<li>[[getFogDistance]]</li>
<li>[[getGameSpeed]]</li>
<li>[[getGravity]]</li>
<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 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.