CreatePed: Difference between revisions

From RAGE Multiplayer Wiki
(Created page with "Creates a new Ped. {{CSharpContainer| {{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}}Ped.CreatePed(PedHash model, Vector3 pos, float heading, uint dimen...")
 
No edit summary
 
Line 3: Line 3:


{{CSharpContainer|
{{CSharpContainer|
{{#tag:syntaxhighlight|void {{Template:CSharp_Serverside_namespace}}Ped.CreatePed(PedHash model, Vector3 pos, float heading, uint dimension = {{Template:CSharp_Serverside_namespace}}GlobalDimension);|lang=csharp}}
{{#tag:syntaxhighlight|Ped {{Template:CSharp_Serverside_namespace}}Ped.CreatePed(PedHash model, Vector3 pos, float heading, uint dimension = {{Template:CSharp_Serverside_namespace}}GlobalDimension);|lang=csharp}}


{{Parameters}}
{{Parameters}}

Latest revision as of 09:05, 29 November 2019

Creates a new Ped.


C# Syntax

Ped NAPI.Ped.CreatePed(PedHash model, Vector3 pos, float heading, uint dimension = NAPI.GlobalDimension);

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

// Code here...