Template:World functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(36 intermediate revisions by 16 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>
*[[setInteriorSoundsEnabled]]
    <li>[[resetAmbientSounds]]</li>
*[[getInteriorSoundsEnabled]]
    <li>[[resetBlurLevel]]</li>
*[[setRainLevel]]
    <li>[[resetColorFilter]]</li>
*[[getRainLevel]]
    <li>[[resetCoronaReflectionsEnabled]]</li>
*[[resetRainLevel]]
    <li>[[resetNearClipDistance]]</li>
*[[setSunSize]]
    <li>[[resetPedsLODDistance]]</li>
*[[getSunSize]]
    {{New feature/item|3.0161|1.6.0|22676|
*[[resetSunSize]]
    <li>[[resetTimeFrozen]]</li>
*[[setSunColor]]
    }}
*[[getSunColor]]
    {{New feature/item|3.0161|1.6.0|22721|
*[[resetSunColor]]
    <li>[[resetVolumetricShadows]]</li>
*[[setWindVelocity]]
    }}
*[[getWindVelocity]]
    <li>[[resetVehiclesLODDistance]]</li>
*[[resetWindVelocity]]
    {{New feature/item|3.0161|1.6.0|22592|
*[[setFarClipDistance]]
    <li>[[resetWorldProperty]]</li>
*[[getFarClipDistance]]
    }}
*[[resetFarClipDistance]]
    <li>[[resetWorldSounds]]</li>
*[[setFogDistance]]
    <li>[[setAmbientSoundEnabled]]</li>
*[[getFogDistance]]
    <li>[[setBirdsEnabled]]</li>
*[[resetFogDistance]]
    <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>
}}
}}
<!-- 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 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.