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

CreateObject

Материал из RAGE MP Wiki Archive
Версия от 13:02, 30 ноября 2019; imported>Xabi (Created page with "Creates a world object. {{CSharpContainer| {{#tag:syntaxhighlight|Object {{Template:CSharp_Serverside_namespace}}Object.CreateObject(int model, Vector3 pos, Quaternion rot,...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Creates a world object.


<syntaxhighlight lang="csharp">Object NAPI.Object.CreateObject(int model, Vector3 pos, Quaternion rot, uint dimension = NAPI.GlobalDimension);</syntaxhighlight> <syntaxhighlight lang="csharp">Object NAPI.Object.CreateObject(uint model, Vector3 pos, Quaternion rot, uint dimension = NAPI.GlobalDimension);</syntaxhighlight> <syntaxhighlight lang="csharp">Object NAPI.Object.CreateObject(int model, Vector3 pos, Vector3 rot, byte alpha = 255, uint dimension = NAPI.GlobalDimension);</syntaxhighlight> <syntaxhighlight lang="csharp">Object NAPI.Object.CreateObject(uint model, Vector3 pos, Vector3 rot, byte alpha = 255, uint dimension = NAPI.GlobalDimension);</syntaxhighlight>

Parameters

  • model: The model of the object to be created.
  • pos: The position where the object will be created.
  • rot: The rotation applied to the object.
  • alpha: Optional, makes the object have transparency.
  • dimension: Optional, the dimension from which the object will be seen.


Example

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