HU/Element/Ped: Difference between revisions

From Multi Theft Auto: Wiki
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...")
 
m (Добавление языков)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
__NOTOC__
__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 to people that drive, they still fall under this name)
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á tartoznak)


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.
A [[hU/createPed|createPed]] funkció kifejezetten NPC-t hoz létre, de minden más ped funkció működik a játékoson is, és az NPC-ken is,  mivel nagyjából mind a kettő egyforma tulajdonsággal bír a San Andreasban.


The element type of a NPC is '''"ped"'''.
Az NPC elemtípusa a '''"ped"'''.


==XML syntax==
==XML szintaxis==
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<ped model="" posX="" posY="" posZ="" rotZ="" interior="" frozen="" />
<ped model="" posX="" posY="" posZ="" rotZ="" interior="" frozen="" />
</syntaxhighlight>
</syntaxhighlight>


===Required Attributes===
===Kötelező paraméterek===
* '''model''': The [[Character_Skins|character skin ID]] of the ped being created.
* '''model''': A létrehozandó [[HU/Character_Skins|ped ID-je]].
* '''posX''': A float representing the X position of the ped.
* '''posX''': A ped X koordinátáját ábrázoló lebegőpontos szám.
* '''posY''': A float representing the Y position of the ped.
* '''posY''': A ped Y koordinátáját ábrázoló lebegőpontos szám.
* '''posZ''': A float representing the Z position of the ped.
* '''posZ''': A ped Z koordinátáját ábrázoló lebegőpontos szám.


===Optional Attributes===
===Tetszőleges paraméterek===
* '''rotZ''': A float representing the Z rotation of the ped.
* '''rotZ''': A ped Z koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
* '''interior''': A interior where the ped spawns.
* '''interior''': Az interior, ahova a pedet elhelyezi.
{{New feature|3.0110|1.1|
{{New feature|3.0110|1.1|
* '''frozen''': A bool indicating whether the ped should be capable of moving
* '''frozen''': Egy igaz/hamis érték jelzi, hogy a ped mozgatható-e
}}
}}


==Related scripting functions==
==Kapcsolódó scripting functions==
{{Ped functions hu}}
{{Ped functions hu}}
[[Category:Element Types]]
[[Category:Element Types]]


[[en:Element/Ped]]
[[en:Element/Ped]]
[[ru:Element/Ped]]
[[hu:Element/Ped]]
==Fordította==
'''2018.10.07.''' <font size="3">'''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]'''</font>

Latest revision as of 20:19, 14 April 2021

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á tartoznak)

A createPed funkció kifejezetten NPC-t hoz létre, de minden más ped funkció működik a játékoson is, és az NPC-ken is, mivel nagyjából mind a kettő egyforma tulajdonsággal bír a San Andreasban.

Az NPC elemtípusa a "ped".

XML szintaxis

<ped model="" posX="" posY="" posZ="" rotZ="" interior="" frozen="" />

Kötelező paraméterek

  • model: A létrehozandó ped ID-je.
  • posX: A ped X koordinátáját ábrázoló lebegőpontos szám.
  • posY: A ped Y koordinátáját ábrázoló lebegőpontos szám.
  • posZ: A ped Z koordinátáját ábrázoló lebegőpontos szám.

Tetszőleges paraméterek

  • rotZ: A ped Z koordinátáján lévő forgatást ábrázoló lebegőpontos szám.
  • interior: Az interior, ahova a pedet elhelyezi.
  • frozen: Egy igaz/hamis érték jelzi, hogy a ped mozgatható-e

Kapcsolódó scripting functions

Fordította

2018.10.07. Surge