Template:Vehicle functions: Difference between revisions
Jump to navigation
Jump to search
m (fix versions setTrainTrack/Position) |
(Rework) |
||
(17 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | |||
<ul> | |||
{{#if: {{{1|}}} | |||
| {{#ifeq: {{lc:{{{1}}}}} | client | |||
| | |||
<!-- CLIENT functions --> | |||
<li>[[areVehicleLightsOn]]</li> | |||
<li>[[getHeliBladeCollisionsEnabled]]</li> | |||
<li>[[getHelicopterRotorSpeed]]</li> | |||
{{New feature/item|3.0161|1.6.0|22344| | |||
<li>[[getVehicleRotorSpeed]]</li> | |||
}} | |||
<li>[[getVehicleAdjustableProperty]]</li> | |||
<li>[[getVehicleComponentPosition]]</li> | |||
<li>[[getVehicleComponentRotation]]</li> | |||
<li>[[getVehicleComponents]]</li> | |||
<li>[[getVehicleComponentScale]]</li> | |||
<li>[[getVehicleComponentVisible]]</li> | |||
<li>[[getVehicleCurrentGear]]</li> | |||
<li>[[getVehicleDummyPosition]]</li> | |||
{{New items|3.0161|1.6.0| | |||
<li>[[getVehicleEntryPoints]]</li> | |||
|22649}} | |||
<li>[[getVehicleGravity]]</li> | |||
<li>[[getVehicleLandingGearDown]]</li> | |||
<li>[[getVehicleModelDummyDefaultPosition]]</li> | |||
<li>[[getVehicleModelDummyPosition]]</li> | |||
<li>[[getVehicleModelExhaustFumesPosition]]</li> | |||
<li>[[getVehicleModelWheelSize]]</li> | |||
<li>[[getVehicleNitroCount]]</li> | |||
<li>[[getVehicleNitroLevel]]</li> | |||
<li>[[getVehicleWheelFrictionState]]</li> | |||
<li>[[getVehicleWheelScale]]</li> | |||
<li>[[isTrainChainEngine]]</li> | |||
<li>[[isVehicleNitroActivated]]</li> | |||
<li>[[isVehicleNitroRecharging]]</li> | |||
<li>[[isVehicleOnGround]]</li> | |||
<li>[[isVehicleWheelOnGround]]</li> | |||
<li>[[isVehicleWindowOpen]]</li> | |||
<li>[[resetVehicleComponentPosition]]</li> | |||
<li>[[resetVehicleComponentRotation]]</li> | |||
<li>[[resetVehicleComponentScale]]</li> | |||
<li>[[resetVehicleDummyPositions]]</li> | |||
<li>[[setHeliBladeCollisionsEnabled]]</li> | |||
<li>[[setHelicopterRotorSpeed]]</li> | |||
{{New items|3.0161|1.6.0| | |||
<li>[[setVehicleRotorSpeed]]</li> | |||
|22344}} | |||
<li>[[setVehicleAdjustableProperty]]</li> | |||
<li>[[setVehicleComponentPosition]]</li> | |||
<li>[[setVehicleComponentRotation]]</li> | |||
<li>[[setVehicleComponentScale]]</li> | |||
<li>[[setVehicleComponentVisible]]</li> | |||
<li>[[setVehicleDummyPosition]]</li> | |||
<li>[[setVehicleGravity]]</li> | |||
<li>[[setVehicleLandingGearDown]]</li> | |||
<li>[[setVehicleModelDummyPosition]]</li> | |||
<li>[[setVehicleModelExhaustFumesPosition]]</li> | |||
<li>[[setVehicleModelWheelSize]]</li> | |||
<li>[[setVehicleNitroActivated]]</li> | |||
<li>[[setVehicleNitroCount]]</li> | |||
<li>[[setVehicleNitroLevel]]</li> | |||
<li>[[setVehicleWheelScale]]</li> | |||
<li>[[setVehicleWheelStates]]</li> | |||
<li>[[setVehicleWindowOpen]]</li> | |||
{{New items|3.0161|1.6.0| | |||
<li>[[setVehicleWheelsRotation]]</li> | |||
|22592}} | |||
| {{#ifeq: {{lc:{{{1}}}}} | server | |||
| | |||
<!-- SERVER functions --> | |||
<li>[[addVehicleSirens]]</li> | |||
<li>[[getModelHandling]]</li> | |||
<li>[[getVehicleIdleRespawnDelay]]</li> | |||
<li>[[getVehicleRespawnDelay]]</li> | |||
<li>[[getVehicleRespawnPosition]]</li> | |||
<li>[[getVehicleRespawnRotation]]</li> | |||
<li>[[getVehiclesOfType]]</li> | |||
<li>[[isVehicleRespawnable]]</li> | |||
<li>[[removeVehicleSirens]]</li> | |||
<li>[[resetVehicleExplosionTime]]</li> | |||
<li>[[resetVehicleIdleTime]]</li> | |||
<li>[[respawnVehicle]]</li> | |||
<li>[[setModelHandling]]</li> | |||
<li>[[setVehicleIdleRespawnDelay]]</li> | |||
<li>[[setVehicleRespawnDelay]]</li> | |||
<li>[[setVehicleRespawnPosition]]</li> | |||
<li>[[setVehicleRespawnRotation]]</li> | |||
<li>[[spawnVehicle]]</li> | |||
<li>[[toggleVehicleRespawn]]</li> | |||
}} | |||
}} | |||
</br> | |||
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li> | |||
}} | |||
<!-- SHARED functions--> | |||
<li>[[addVehicleUpgrade]]</li> | |||
<li>[[attachTrailerToVehicle]]</li> | |||
<li>[[blowVehicle]]</li> | |||
<li>[[createVehicle]]</li> | |||
<li>[[detachTrailerFromVehicle]]</li> | |||
<li>[[fixVehicle]]</li> | |||
<li>[[getOriginalHandling]]</li> | |||
<li>[[getTrainDirection]]</li> | |||
<li>[[getTrainPosition]]</li> | |||
<li>[[getTrainSpeed]]</li> | |||
<li>[[getTrainTrack]]</li> | |||
<li>[[getVehicleColor]]</li> | |||
<li>[[getVehicleCompatibleUpgrades]]</li> | |||
<li>[[getVehicleController]]</li> | |||
<li>[[getVehicleDoorOpenRatio]]</li> | |||
<li>[[getVehicleDoorState]]</li> | |||
<li>[[getVehicleEngineState]]</li> | |||
<li>[[getVehicleHandling]]</li> | |||
<li>[[getVehicleHeadLightColor]]</li> | |||
<li>[[getVehicleLandingGearDown]]</li> | |||
<li>[[getVehicleLightState]]</li> | |||
<li>[[getVehicleMaxPassengers]]</li> | |||
<li>[[getVehicleModelFromName]]</li> | |||
<li>[[getVehicleName]]</li> | |||
<li>[[getVehicleNameFromModel]]</li> | |||
<li>[[getVehicleOccupant]]</li> | |||
<li>[[getVehicleOccupants]]</li> | |||
<li>[[getVehicleOverrideLights]]</li> | |||
<li>[[getVehiclePaintjob]]</li> | |||
<li>[[getVehiclePanelState]]</li> | |||
<li>[[getVehiclePlateText]]</li> | |||
<li>[[getVehicleSirenParams]]</li> | |||
<li>[[getVehicleSirens]]</li> | |||
<li>[[getVehicleSirensOn]]</li> | |||
<li>[[getVehicleTowedByVehicle]]</li> | |||
<li>[[getVehicleTowingVehicle]]</li> | |||
<li>[[getVehicleTurretPosition]]</li> | |||
{{Deprecated items|3.0156|1.5.6| | |||
<li>[[getVehicleTurnVelocity]]</li> | |||
}} | |||
<li>[[getVehicleType]]</li> | |||
<li>[[getVehicleUpgradeOnSlot]]</li> | |||
<li>[[getVehicleUpgradeSlotName]]</li> | |||
<li>[[getVehicleUpgrades]]</li> | |||
<li>[[getVehicleVariant]]</li> | |||
<li>[[getVehicleWheelStates]]</li> | |||
<li>[[isTrainDerailable]]</li> | |||
<li>[[isTrainDerailed]]</li> | |||
<li>[[isVehicleBlown]]</li> | |||
<li>[[isVehicleDamageProof]]</li> | |||
<li>[[isVehicleFuelTankExplodable]]</li> | |||
<li>[[isVehicleLocked]]</li> | |||
<li>[[isVehicleOnGround]]</li> | |||
<li>[[isVehicleTaxiLightOn]]</li> | |||
<li>[[removeVehicleUpgrade]]</li> | |||
<li>[[setTrainDerailable]]</li> | |||
<li>[[setTrainDerailed]]</li> | |||
<li>[[setTrainDirection]]</li> | |||
<li>[[setTrainPosition]]</li> | |||
<li>[[setTrainSpeed]]</li> | |||
<li>[[setTrainTrack]]</li> | |||
<li>[[setVehicleColor]]</li> | |||
<li>[[setVehicleDamageProof]]</li> | |||
<li>[[setVehicleDoorOpenRatio]]</li> | |||
<li>[[setVehicleDoorState]]</li> | |||
<li>[[setVehicleDoorsUndamageable]]</li> | |||
<li>[[setVehicleEngineState]]</li> | |||
<li>[[setVehicleFuelTankExplodable]]</li> | |||
<li>[[setVehicleHandling]]</li> | |||
<li>[[setVehicleHeadLightColor]]</li> | |||
<li>[[setVehicleLandingGearDown]]</li> | |||
<li>[[setVehicleLightState]]</li> | |||
<li>[[setVehicleLocked]]</li> | |||
<li>[[setVehicleOverrideLights]]</li> | |||
<li>[[setVehiclePaintjob]]</li> | |||
<li>[[setVehiclePanelState]]</li> | |||
<li>[[setVehiclePlateText]]</li> | |||
<li>[[setVehicleSirens]]</li> | |||
<li>[[setVehicleSirensOn]]</li> | |||
<li>[[setVehicleTaxiLightOn]]</li> | |||
{{Deprecated items|3.0156|1.5.6| | |||
<li>[[setVehicleTurnVelocity]]</li> | |||
}} | |||
<li>[[setVehicleTurretPosition]]</li> | |||
<li>[[setVehicleVariant]]</li> | |||
<li>[[setVehicleWheelStates]]</li> | |||
</ul> | |||
</includeonly> | |||
<noinclude> | |||
{{Functions list info}} | |||
[[Category:Functions templates]]</noinclude> | |||
{{ | |||
Revision as of 18:17, 6 September 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.