Перейти к содержанию

CreatePed

Материал из RAGE MP Wiki Archive
Версия от 09:05, 29 ноября 2019; imported>Xabi
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Creates a new Ped.


<syntaxhighlight lang="csharp">Ped NAPI.Ped.CreatePed(PedHash model, Vector3 pos, float heading, uint dimension = NAPI.GlobalDimension);</syntaxhighlight>

Parameters

  • model: The hash defining the Ped's model.
  • pos: The position where the Ped will be created.
  • heading: The angle the Ped will be looking to.
  • dimension: Optional, defaults to Global Dimension.


Example

<syntaxhighlight lang="csharp"> // Code here... </syntaxhighlight>