Template:Ped functions: Difference between revisions

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