Template:World functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(42 intermediate revisions by 17 users not shown)
Line 1: Line 1:
{{New feature|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 feature|3.0110|1.1|
<li>[[getAircraftMaxVelocity]]</li>
* [[getSkyGradient]]
<li>[[getCloudsEnabled]]</li>
}}
<li>[[getFarClipDistance]]</li>
*[[getTime]]
<li>[[getFogDistance]]</li>
{{New feature|3.0110|1.1|
<li>[[getGameSpeed]]</li>
* [[getTrafficLightState]]
<li>[[getGravity]]</li>
* [[getWaterColor]]
<li>[[getHeatHaze]]</li>
}}
<li>[[getInteriorSoundsEnabled]]</li>
*[[getWeather]]
<li>[[getJetpackMaxHeight]]</li>
*[[getZoneName]]
<li>[[getMinuteDuration]]</li>
*[[isGarageOpen]]
<li>[[getMoonSize]]</li>
*[[resetSkyGradient]]
<li>[[getOcclusionsEnabled]]</li>
*[[setCloudsEnabled]]
<li>[[getRainLevel]]</li>
*[[setGameSpeed]]
<li>[[getSunColor]]</li>
*[[setGarageOpen]]
<li>[[getSunSize]]</li>
*[[setGravity]]
<li>[[getTime]]</li>
*[[setMinuteDuration]]
<li>[[getTrafficLightState]]</li>
*[[setSkyGradient]]
<li>[[getWeather]]</li>
*[[setTime]]
<li>[[getWindVelocity]]</li>
{{New feature|3.0110|1.1|
<li>[[getSkyGradient]]</li>
* [[setTrafficLightState]]
<li>[[getPlayerBlurLevel]]</li>
* [[setTrafficLightsLocked]]
{{New items|3.0161|1.6.0|
* [[setWaterColor]]
<li>[[isWorldSpecialPropertyEnabled]]</li>
}}
|22195}}
*[[setWeather]]
<li>[[getZoneName]]</li>
*[[setWeatherBlended]]
<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.