Template:Ped functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Rework)
 
(30 intermediate revisions by 15 users not shown)
Line 1: Line 1:
*[[addPedClothes]]
<includeonly>
*[[createPed]]
<ul>
*[[doesPedHaveJetPack]]
{{#if: {{{1|}}}
*[[getPedAnimation]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getPedAmmoInClip]]
|
*[[getPedArmor]]
    <!-- CLIENT functions -->
*[[getPedClothes]]
    <li>[[canPedBeKnockedOffBike]]</li>
*[[getPedContactElement]]
    <li>[[getPedAnalogControlState]]</li>
*[[getPedFightingStyle]]
    <li>[[getPedAnimation]]</li>
*[[getPedGravity]]
    <li>[[getPedBonePosition]]</li>
{{New feature|3.0110|1.1|
    <li>[[getPedCameraRotation]]</li>
*[[getPedMoveState]]
    <li>[[getPedControlState]]</li>
    <li>[[getPedMoveState]]</li>
    <li>[[getPedOxygenLevel]]</li>
    <li>[[getPedSimplestTask]]</li>
    <li>[[getPedTargetCollision]]</li>
    <li>[[getPedTargetEnd]]</li>
    <li>[[getPedTargetStart]]</li>
    <li>[[getPedTask]]</li>
    <li>[[getPedVoice]]</li>
    <li>[[getPedWeaponMuzzlePosition]]</li>
    <li>[[givePedWeapon]]</li>
    <li>[[isPedBleeding]]</li>
    <li>[[isPedDoingTask]]</li>
    <li>[[isPedReloadingWeapon]]</li>
    <li>[[isPedTargetingMarkerEnabled]]</li>
    {{New items|3.0161|1.6.0|
    <li>[[resetPedVoice]]</li>
    |21874}}
    <li>[[setAnalogControlState]]</li>
    <li>[[setPedAimTarget]]</li>
    <li>[[setPedAnalogControlState]]</li>
    <li>[[setPedBleeding]]</li>
    <li>[[setPedCameraRotation]]</li>
    <li>[[setPedCanBeKnockedOffBike]]</li>
    <li>[[setPedControlState]]</li>
    <li>[[setPedEnterVehicle]]</li>
    <li>[[setPedExitVehicle]]</li>
    <li>[[IsPedFootBloodEnabled]]</li>
    <li>[[setPedFootBloodEnabled]]</li>
    <li>[[setPedLookAt]]</li>
    <li>[[setPedOxygenLevel]]</li>
    <li>[[setPedTargetingMarkerEnabled]]</li>
<li>[[setPedVoice]]</li>
| {{#ifeq: {{lc:{{{1}}}}} | server
|
    <!-- SERVER functions -->
    <li>[[getPedGravity]]</li>
    <li>[[reloadPedWeapon]]</li>
    <li>[[setPedChoking]]</li>
    <li>[[setPedGravity]]</li>
    <li>[[setPedWearingJetpack]]</li>
    }}
  }}
</br>
<li style="list-style: none; margin-left: -1.6em;">'''Shared'''</li>
}}
}}
*[[getPedOccupiedVehicle]]
 
*[[getPedOccupiedVehicleSeat]]
<!-- SHARED functions-->
*[[getPedRotation]]
<li>[[addPedClothes]]</li>
*[[getPedSkin]]
<li>[[getPedClothes]]</li>
*[[getPedStat]]
<li>[[removePedClothes]]</li>
*[[getPedTarget]]
<li>[[createPed]]</li>
*[[getPedTotalAmmo]]
<li>[[getPedAmmoInClip]]</li>
*[[getPedWeapon]]
<li>[[getPedArmor]]</li>
*[[getPedWeaponSlot]]
<li>[[getPedFightingStyle]]</li>
*[[givePedJetPack]]
<li>[[getPedOccupiedVehicle]]</li>
*[[isPedChoking]]
<li>[[getPedOccupiedVehicleSeat]]</li>
*[[isPedDead]]
<li>[[getPedStat]]</li>
*[[isPedDoingGangDriveby]]
<li>[[getPedTarget]]</li>
*[[isPedDucked]]
<li>[[getPedTotalAmmo]]</li>
*[[isPedFrozen]]
<li>[[getPedWalkingStyle]]</li>
*[[isPedHeadless]]
<li>[[getPedWeapon]]</li>
*[[isPedInVehicle]]
<li>[[getPedWeaponSlot]]</li>
*[[isPedInWater]]
<li>[[getPedContactElement]]</li>
*[[isPedOnFire]]
<li>[[getValidPedModels]]</li>
*[[isPedOnGround]]
<li>[[isPedChoking]]</li>
*[[killPed]]
<li>[[isPedDead]]</li>
*[[reloadPedWeapon]]
<li>[[isPedDoingGangDriveby]]</li>
*[[removePedClothes]]
<li>[[isPedDucked]]</li>
*[[removePedFromVehicle]]
<li>[[isPedHeadless]]</li>
*[[removePedJetPack]]
<li>[[isPedInVehicle]]</li>
*[[setPedAnimation]]
<li>[[isPedOnFire]]</li>
*[[setPedArmor]]
<li>[[isPedOnGround]]</li>
*[[setPedChoking]]
<li>[[isPedWearingJetpack]]</li>
*[[setPedDoingGangDriveby]]
<li>[[killPed]]</li>
*[[setPedFightingStyle]]
<li>[[removePedFromVehicle]]</li>
*[[setPedFrozen]]
<li>[[setPedAnimation]]</li>
*[[setPedGravity]]
<li>[[setPedAnimationProgress]]</li>
*[[setPedHeadless]]
<li>[[setPedAnimationSpeed]]</li>
*[[setPedOnFire]]
<li>[[setPedArmor]]</li>
*[[setPedRotation]]
<li>[[setPedDoingGangDriveby]]</li>
*[[setPedSkin]]
<li>[[setPedFightingStyle]]</li>
*[[setPedStat]]
<li>[[setPedHeadless]]</li>
*[[setPedWeaponSlot]]
<li>[[setPedOnFire]]</li>
*[[warpPedIntoVehicle]]
<li>[[setPedStat]]</li>
<li>[[setPedWalkingStyle]]</li>
<li>[[setPedWeaponSlot]]</li>
<li>[[warpPedIntoVehicle]]</li>
</ul>
</includeonly>
 
<noinclude>
{{Functions list info}}
[[Category:Functions templates]]</noinclude>

Latest revision as of 17:34, 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.