HU/Element/Ped: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ The word "ped" is short for "pedestrian" and describes any person in GTA, be it a player or an NPC character. (And even though "pedestrian" doesn't technically apply...") |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
A "ped" szó a "pedestrian" rövidítése és meghatározza az összes személyt a GTA-ban, lehet egy játékos vagy egy NPC karakter. (Annak ellenére, hogy a "pedestrian" technikailag nem vonatkozik azokra a játékosokra, akik vezetnek, még mindig e név alá kerülnek) | |||
The [[createPed]] function specifically creates an NPC, but all other ped functions work on both players and NPC's as they're pretty much the same thing to San Andreas. | The [[createPed]] function specifically creates an NPC, but all other ped functions work on both players and NPC's as they're pretty much the same thing to San Andreas. | ||
Line 29: | Line 29: | ||
[[en:Element/Ped]] | [[en:Element/Ped]] | ||
==Fordította== | |||
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]''''' |
Revision as of 19:07, 7 October 2018
A "ped" szó a "pedestrian" rövidítése és meghatározza az összes személyt a GTA-ban, lehet egy játékos vagy egy NPC karakter. (Annak ellenére, hogy a "pedestrian" technikailag nem vonatkozik azokra a játékosokra, akik vezetnek, még mindig e név alá kerülnek)
The createPed function specifically creates an NPC, but all other ped functions work on both players and NPC's as they're pretty much the same thing to San Andreas.
The element type of a NPC is "ped".
XML syntax
<ped model="" posX="" posY="" posZ="" rotZ="" interior="" frozen="" />
Required Attributes
- model: The character skin ID of the ped being created.
- posX: A float representing the X position of the ped.
- posY: A float representing the Y position of the ped.
- posZ: A float representing the Z position of the ped.
Optional Attributes
- rotZ: A float representing the Z rotation of the ped.
- interior: A interior where the ped spawns.
- frozen: A bool indicating whether the ped should be capable of moving
Related scripting functions
- HU/addPedClothes
- HU/createPed
- HU/getPedAmmoInClip
- HU/getPedArmor
- HU/getPedClothes
- HU/getPedContactElement
- HU/getPedFightingStyle
- HU/getPedGravity
- HU/getPedOccupiedVehicle
- HU/getPedOccupiedVehicleSeat
- HU/getPedStat
- HU/getPedTarget
- HU/getPedTotalAmmo
- HU/getPedWalkingStyle
- HU/getPedWeapon
- HU/getPedWeaponSlot
- HU/getValidPedModels
- HU/isPedChoking
- HU/isPedDead
- HU/isPedDoingGangDriveby
- HU/isPedDucked
- HU/isPedFrozen
- HU/isPedHeadless
- HU/isPedInVehicle
- HU/isPedOnFire
- HU/isPedOnGround
- HU/isPedWearingJetpack
- HU/killPed
- HU/reloadPedWeapon
- HU/removePedClothes
- HU/removePedFromVehicle
- HU/setPedAnimation
- HU/setPedAnimationProgress
- HU/setPedAnimationSpeed
- HU/setPedArmor
- HU/setPedChoking
- HU/setPedDoingGangDriveby
- HU/setPedFightingStyle
- HU/setPedGravity
- HU/setPedHeadless
- HU/setPedOnFire
- HU/setPedStat
- HU/setPedWalkingStyle
- HU/setPedWeaponSlot
- HU/setPedWearingJetpack
- HU/warpPedIntoVehicle