Template:Ped functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Removed deprecated getPedRotation)
(Rework)
 
(21 intermediate revisions by 11 users not shown)
Line 1: Line 1:
*[[addPedClothes]]
<includeonly>
*[[createPed]]
<ul>
*[[doesPedHaveJetPack]]
{{#if: {{{1|}}}
*[[getPedAmmoInClip]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getPedArmor]]
|
*[[getPedClothes]]
    <!-- CLIENT functions -->
*[[getPedContactElement]]
    <li>[[canPedBeKnockedOffBike]]</li>
*[[getPedFightingStyle]]
    <li>[[getPedAnalogControlState]]</li>
*[[getPedGravity]]
    <li>[[getPedAnimation]]</li>
{{New items|3.0110|1.1|
    <li>[[getPedBonePosition]]</li>
*[[getPedMoveState]]
    <li>[[getPedCameraRotation]]</li>
    <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-->
*[[getPedSkin]]
<li>[[addPedClothes]]</li>
*[[getPedStat]]
<li>[[getPedClothes]]</li>
*[[getPedTarget]]
<li>[[removePedClothes]]</li>
*[[getPedTotalAmmo]]
<li>[[createPed]]</li>
*[[getPedWeapon]]
<li>[[getPedAmmoInClip]]</li>
*[[getPedWeaponSlot]]
<li>[[getPedArmor]]</li>
*[[getValidPedModels]]
<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>
{{New items|3.0110|1.1|
<li>[[isPedOnGround]]</li>
*[[setPedAnimationProgress]]
<li>[[isPedWearingJetpack]]</li>
}}
<li>[[killPed]]</li>
*[[setPedArmor]]
<li>[[removePedFromVehicle]]</li>
*[[setPedChoking]]
<li>[[setPedAnimation]]</li>
*[[setPedDoingGangDriveby]]
<li>[[setPedAnimationProgress]]</li>
*[[setPedFightingStyle]]
<li>[[setPedAnimationSpeed]]</li>
*[[setPedFrozen]]
<li>[[setPedArmor]]</li>
*[[setPedGravity]]
<li>[[setPedDoingGangDriveby]]</li>
*[[setPedHeadless]]
<li>[[setPedFightingStyle]]</li>
*[[setPedOnFire]]
<li>[[setPedHeadless]]</li>
*[[setPedSkin]]
<li>[[setPedOnFire]]</li>
*[[setPedStat]]
<li>[[setPedStat]]</li>
*[[setPedWeaponSlot]]
<li>[[setPedWalkingStyle]]</li>
*[[warpPedIntoVehicle]]
<li>[[setPedWeaponSlot]]</li>
<noinclude>[[Category:Functions templates]]</noinclude>
<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.