Element/Ped: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
Слово "пед" является коротким  для "пешеход" и описывает любого персонажа в GTA, быть может это игрок или NPC персонаж. (И даже притом, что "пешеход" технически не относиться к людям, которые двигаются, они, тем не менее, подпадают под это название)
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)


Функция [[createPed]] определенно создает NPC, но все другие функции пед работуют для игроков и NPC, поскольку они - в значительной степени та же самая вещь в 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.


Тип элемента NPC - '''"пед"'''.
The element type of a NPC is '''"ped"'''.


==XML синтаксис==
==XML синтаксис==
Line 11: Line 11:
</syntaxhighlight>
</syntaxhighlight>


===Обязательные Атрибуты===
===Required Attributes===
* '''model''': [[Character_Skins|Скин ID персонажа]] создаваемого педа.
* '''model''': The [[Character_Skins|character skin ID]] of the ped being created.
* '''posX''': Число с плавающей точкой, представляющая X позицию педа.
* '''posX''': A float representing the X position of the ped.
* '''posY''': Число с плавающей точкой, представляющая Y позицию педа.
* '''posY''': A float representing the Y position of the ped.
* '''posZ''': Число с плавающей точкой, представляющая Z позицию педа.
* '''posZ''': A float representing the Z position of the ped.


===Дополнительные Атрибуты===
===Optional Attributes===
* '''rotZ''': Число с плавающей точкой, представляющая Z вращение педа.
* '''rotZ''': A float representing the Z rotation of the ped.
* '''interior''': Интерьер, где пед спавнится.
* '''interior''': A interior where the ped spawns.
{{New feature|3.0110|1.1|
{{New feature|3.0110|1.1|
* '''frozen''': Указание bool, способен ли пед к перемещению (true - способен, false - нет)
* '''frozen''': A bool indicating whether the ped should be capable of moving
}}
}}


==Связанные функции скриптинга==
==Related scripting functions==
{{Ped functions}}
{{Ped functions}}
[[Category:Element Types]]
[[Category:Element Types]]

Revision as of 18:32, 25 July 2011

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)

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 синтаксис

<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

Shared