Template:Ped functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Rework)
 
(28 intermediate revisions by 14 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>
*[[getValidPedModels]]
<li>[[getPedOccupiedVehicle]]</li>
*[[givePedJetPack]]
<li>[[getPedOccupiedVehicleSeat]]</li>
*[[isPedChoking]]
<li>[[getPedStat]]</li>
*[[isPedDead]]
<li>[[getPedTarget]]</li>
*[[isPedDoingGangDriveby]]
<li>[[getPedTotalAmmo]]</li>
*[[isPedDucked]]
<li>[[getPedWalkingStyle]]</li>
*[[isPedFrozen]]
<li>[[getPedWeapon]]</li>
*[[isPedHeadless]]
<li>[[getPedWeaponSlot]]</li>
*[[isPedInVehicle]]
<li>[[getPedContactElement]]</li>
*[[isPedInWater]]
<li>[[getValidPedModels]]</li>
*[[isPedOnFire]]
<li>[[isPedChoking]]</li>
*[[isPedOnGround]]
<li>[[isPedDead]]</li>
*[[killPed]]
<li>[[isPedDoingGangDriveby]]</li>
*[[reloadPedWeapon]]
<li>[[isPedDucked]]</li>
*[[removePedClothes]]
<li>[[isPedHeadless]]</li>
*[[removePedFromVehicle]]
<li>[[isPedInVehicle]]</li>
*[[removePedJetPack]]
<li>[[isPedOnFire]]</li>
*[[setPedAnimation]]
<li>[[isPedOnGround]]</li>
*[[setPedArmor]]
<li>[[isPedWearingJetpack]]</li>
*[[setPedChoking]]
<li>[[killPed]]</li>
*[[setPedDoingGangDriveby]]
<li>[[removePedFromVehicle]]</li>
*[[setPedFightingStyle]]
<li>[[setPedAnimation]]</li>
*[[setPedFrozen]]
<li>[[setPedAnimationProgress]]</li>
*[[setPedGravity]]
<li>[[setPedAnimationSpeed]]</li>
*[[setPedHeadless]]
<li>[[setPedArmor]]</li>
*[[setPedOnFire]]
<li>[[setPedDoingGangDriveby]]</li>
*[[setPedRotation]]
<li>[[setPedFightingStyle]]</li>
*[[setPedSkin]]
<li>[[setPedHeadless]]</li>
*[[setPedStat]]
<li>[[setPedOnFire]]</li>
*[[setPedWeaponSlot]]
<li>[[setPedStat]]</li>
*[[warpPedIntoVehicle]]
<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.