Template:Ped functions: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Rework)
 
(37 intermediate revisions by 18 users not shown)
Line 1: Line 1:
{{New feature|3|1.0|
<includeonly>
*[[addPedClothes]]
<ul>
*[[createPed]]
{{#if: {{{1|}}}
*[[doesPedHaveJetPack]]
| {{#ifeq: {{lc:{{{1}}}}} | client
*[[getPedAnimation]]
|
*[[getPedArmor]]
    <!-- CLIENT functions -->
*[[getPedClothes]]
    <li>[[canPedBeKnockedOffBike]]</li>
*[[getPedContactElement]]
    <li>[[getPedAnalogControlState]]</li>
*[[getPedFightingStyle]]
    <li>[[getPedAnimation]]</li>
*[[getPedGravity]]
    <li>[[getPedBonePosition]]</li>
*[[getPedOccupiedVehicle]]
    <li>[[getPedCameraRotation]]</li>
*[[getPedOccupiedVehicleSeat]]
    <li>[[getPedControlState]]</li>
*[[getPedRotation]]
    <li>[[getPedMoveState]]</li>
*[[getPedStat]]
    <li>[[getPedOxygenLevel]]</li>
*[[getPedSkin]]
    <li>[[getPedSimplestTask]]</li>
*[[getPedTarget]]
    <li>[[getPedTargetCollision]]</li>
*[[getPedWeaponSlot]]
    <li>[[getPedTargetEnd]]</li>
*[[givePedJetPack]]
    <li>[[getPedTargetStart]]</li>
*[[isPedChoking]]
    <li>[[getPedTask]]</li>
*[[isPedDead]]
    <li>[[getPedVoice]]</li>
*[[isPedDoingGangDriveby]]
    <li>[[getPedWeaponMuzzlePosition]]</li>
*[[isPedDucked]]
    <li>[[givePedWeapon]]</li>
*[[isPedHeadless]]
    <li>[[isPedBleeding]]</li>
*[[isPedInVehicle]]
    <li>[[isPedDoingTask]]</li>
*[[isPedInWater]]
    <li>[[isPedReloadingWeapon]]</li>
*[[isPedOnGround]]
    <li>[[isPedTargetingMarkerEnabled]]</li>
*[[isPedOnFire]]
    {{New items|3.0161|1.6.0|
*[[killPed]]
    <li>[[resetPedVoice]]</li>
*[[removePedClothes]]
    |21874}}
*[[removePedJetPack]]
    <li>[[setAnalogControlState]]</li>
*[[setPedAnimation]]
    <li>[[setPedAimTarget]]</li>
*[[setPedArmor]]
    <li>[[setPedAnalogControlState]]</li>
*[[setPedChoking]]
    <li>[[setPedBleeding]]</li>
*[[setPedDoingGangDriveby]]
    <li>[[setPedCameraRotation]]</li>
*[[setPedFightingStyle]]
    <li>[[setPedCanBeKnockedOffBike]]</li>
*[[setPedGravity]]
    <li>[[setPedControlState]]</li>
*[[setPedHeadless]]
    <li>[[setPedEnterVehicle]]</li>
*[[setPedOnFire]]
    <li>[[setPedExitVehicle]]</li>
*[[setPedRotation]]
    <li>[[IsPedFootBloodEnabled]]</li>
*[[setPedStat]]
    <li>[[setPedFootBloodEnabled]]</li>
*[[setPedSkin]]
    <li>[[setPedLookAt]]</li>
*[[setPedWeaponSlot]]
    <li>[[setPedOxygenLevel]]</li>
*[[warpPedIntoVehicle]]
    <li>[[setPedTargetingMarkerEnabled]]</li>
*[[removePedFromVehicle]]
<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>
}}
}}
<!-- 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.