Template:World functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Undo revision 79729 by Samr46 (talk))
Tag: Undo
mNo edit summary
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>
<ul>
<ul>
<li>[[getJetpackWeaponEnabled]]</li>
{{#if: {{{1|}}}
<li>[[setJetpackWeaponEnabled]]</li>
| {{#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>
    }}
    {{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>
</ul>
</includeonly>


'''Shared'''
<noinclude>
{{Shared_world_functions}}
{{Functions list info}}
 
[[Category:Functions templates]]</noinclude>
<noinclude>[[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.