Template:World functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(28 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{{New items|3.0110|1.1|
<includeonly>
* [[areTrafficLightsLocked]]
<ul>
{{#if: {{{1|}}}
| {{#ifeq: {{lc:{{{1}}}}} | client
|
    <!-- CLIENT functions -->
    <li>[[createSWATRope]]</li>
    <li>[[getBirdsEnabled]]</li>
    {{New feature/item|3.0161|1.6.0|22188|
    <li>[[getColorFilter]]</li>
    }}
    <li>[[getCoronaReflectionsEnabled]]</li>
    <li>[[getGarageBoundingBox]]</li>
    <li>[[getGaragePosition]]</li>
    <li>[[getGarageSize]]</li>
    <li>[[getGroundPosition]]</li>
    <li>[[getInteriorFurnitureEnabled]]</li>
    <li>[[getNearClipDistance]]</li>
    <li>[[getPedsLODDistance]]</li>
    <li>[[getRoofPosition]]</li>
    <li>[[getScreenFromWorldPosition]]</li>
    <li>[[getVehiclesLODDistance]]</li>
    <li>[[getWorldFromScreenPosition]]</li>
    {{New feature/item|3.0161|1.6.0|22592|
    <li>[[getWorldProperty]]</li>
    }}
    <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>
}}
}}
*[[getCloudsEnabled]]
<!-- SHARED functions-->
*[[getGameSpeed]]
<li>[[areTrafficLightsLocked]]</li>
*[[getGravity]]
<li>[[getAircraftMaxHeight]]</li>
{{New items|3.0110|1.1|
<li>[[getAircraftMaxVelocity]]</li>
* [[getHeatHaze]]
<li>[[getCloudsEnabled]]</li>
* [[getJetpackMaxHeight]]
<li>[[getFarClipDistance]]</li>
* [[getSkyGradient]]
<li>[[getFogDistance]]</li>
}}
<li>[[getGameSpeed]]</li>
*[[getTime]]
<li>[[getGravity]]</li>
{{New items|3.0110|1.1|
<li>[[getHeatHaze]]</li>
* [[getTrafficLightState]]
<li>[[getInteriorSoundsEnabled]]</li>
}}
<li>[[getJetpackMaxHeight]]</li>
*[[getWeather]]
<li>[[getMinuteDuration]]</li>
*[[getZoneName]]
<li>[[getMoonSize]]</li>
*[[isGarageOpen]]
<li>[[getOcclusionsEnabled]]</li>
*[[resetSkyGradient]]
<li>[[getRainLevel]]</li>
{{New items|3.0110|1.1|
<li>[[getSunColor]]</li>
* [[resetHeatHaze]]
<li>[[getSunSize]]</li>
}}
<li>[[getTime]]</li>
*[[setCloudsEnabled]]
<li>[[getTrafficLightState]]</li>
*[[setGameSpeed]]
<li>[[getWeather]]</li>
*[[setGarageOpen]]
<li>[[getWindVelocity]]</li>
*[[setGravity]]
<li>[[getSkyGradient]]</li>
{{New items|3.0110|1.1|
<li>[[getPlayerBlurLevel]]</li>
* [[setHeatHaze]]
{{New items|3.0161|1.6.0|
}}
<li>[[isWorldSpecialPropertyEnabled]]</li>
*[[setMinuteDuration]]
|22195}}
*[[setSkyGradient]]
<li>[[getZoneName]]</li>
*[[setTime]]
<li>[[isGarageOpen]]</li>
{{New items|3.0110|1.1|
<li>[[removeWorldModel]]</li>
* [[setTrafficLightState]]
<li>[[resetFarClipDistance]]</li>
* [[setTrafficLightsLocked]]
<li>[[resetFogDistance]]</li>
}}
<li>[[resetHeatHaze]]</li>
*[[setWeather]]
<li>[[resetMoonSize]]</li>
*[[setWeatherBlended]]
<li>[[resetRainLevel]]</li>
{{New items|3.0110|1.1|
<li>[[resetSkyGradient]]</li>
*[[setInteriorSoundsEnabled]]
<li>[[resetSunColor]]</li>
*[[getInteriorSoundsEnabled]]
<li>[[resetSunSize]]</li>
*[[setRainLevel]]
<li>[[resetWindVelocity]]</li>
*[[getRainLevel]]
<li>[[restoreAllWorldModels]]</li>
*[[resetRainLevel]]
<li>[[restoreWorldModel]]</li>
*[[setSunSize]]
<li>[[setAircraftMaxHeight]]</li>
*[[getSunSize]]
<li>[[setAircraftMaxVelocity]]</li>
*[[resetSunSize]]
<li>[[setCloudsEnabled]]</li>
*[[setSunColor]]
<li>[[setFarClipDistance]]</li>
*[[getSunColor]]
<li>[[setFogDistance]]</li>
*[[resetSunColor]]
<li>[[setGameSpeed]]</li>
*[[setWindVelocity]]
<li>[[setGarageOpen]]</li>
*[[getWindVelocity]]
<li>[[setGravity]]</li>
*[[resetWindVelocity]]
<li>[[setHeatHaze]]</li>
*[[setFarClipDistance]]
<li>[[setInteriorSoundsEnabled]]</li>
*[[getFarClipDistance]]
<li>[[setMinuteDuration]]</li>
*[[resetFarClipDistance]]
<li>[[setMoonSize]]</li>
*[[setFogDistance]]
<li>[[setOcclusionsEnabled]]</li>
*[[getFogDistance]]
<li>[[setRainLevel]]</li>
*[[resetFogDistance]]
<li>[[setSkyGradient]]</li>
}}
<li>[[setSunColor]]</li>
*[[removeWorldModel]]
<li>[[setSunSize]]</li>
*[[restoreWorldModel]]
<li>[[setTime]]</li>
*[[restoreAllWorldModels]]
<li>[[setTrafficLightState]]</li>
*[[setOcclusionsEnabled]]
<li>[[setTrafficLightsLocked]]</li>
*[[getOcclusionsEnabled]]
<li>[[setWeather]]</li>
<noinclude>[[Category:Functions templates]]</noinclude>
<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.