Template:Ped functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Rework)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
*[[addPedClothes]]
<includeonly>
*[[createPed]]
<ul>
{{Deprecated feature|3.0156|1.5.6|
{{#if: {{{1|}}}
*[[doesPedHaveJetPack]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[givePedJetPack]]
|
*[[removePedJetPack]]
    <!-- CLIENT functions -->
    <li>[[canPedBeKnockedOffBike]]</li>
    <li>[[getPedAnalogControlState]]</li>
    <li>[[getPedAnimation]]</li>
    <li>[[getPedBonePosition]]</li>
    <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>
}}
}}
*[[getPedAmmoInClip]]
*[[getPedArmor]]
*[[getPedClothes]]
*[[getPedContactElement]]
*[[getPedFightingStyle]]
*[[getPedGravity]]
*[[getPedOccupiedVehicle]]
*[[getPedOccupiedVehicleSeat]]
*[[getPedStat]]
*[[getPedTarget]]
*[[getPedTotalAmmo]]
*[[getPedWalkingStyle]]
*[[getPedWeapon]]
*[[getPedWeaponSlot]]
*[[getValidPedModels]]
*[[isPedChoking]]
*[[isPedDead]]
*[[isPedDoingGangDriveby]]
*[[isPedDucked]]
*[[isPedFrozen]]
*[[isPedHeadless]]
*[[isPedInVehicle]]
*[[isPedOnFire]]
*[[isPedOnGround]]
{{New items|3.0156|1.5.5|
*[[isPedWearingJetpack]]
*[[setPedWearingJetpack]]
|13846}}
*[[killPed]]
*[[reloadPedWeapon]]
*[[removePedClothes]]
*[[removePedFromVehicle]]
*[[setPedAnimation]]
*[[setPedAnimationProgress]]
{{New items|3.0156|1.5.5|
*[[setPedAnimationSpeed]]
|14219}}
*[[setPedArmor]]
*[[setPedChoking]]
*[[setPedDoingGangDriveby]]
*[[setPedFightingStyle]]
*[[setPedGravity]]
*[[setPedHeadless]]
*[[setPedOnFire]]
*[[setPedStat]]
*[[setPedWalkingStyle]]
*[[setPedWeaponSlot]]
*[[warpPedIntoVehicle]]


<noinclude>[[Category:Functions templates]]</noinclude>
<!-- 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.