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

CreateCylinderColShape

Материал из RAGE MP Wiki Archive
Версия от 18:23, 28 ноября 2019; imported>Xabi (Created page with "Creates a cylinder shaped colshape object. {{CSharpContainer| {{#tag:syntaxhighlight|ColShape {{Template:CSharp_Serverside_namespace}}ColShape.CreateCylinderColShape(Vector3...")
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

Creates a cylinder shaped colshape object.


<syntaxhighlight lang="csharp">ColShape NAPI.ColShape.CreateCylinderColShape(Vector3 position, float range, float height, uint dimension = NAPI.GlobalDimension);</syntaxhighlight>

Parameters

  • position: parameter input should be in Vector3 type
  • range: parameter input should be in float type
  • height: parameter input should be in float type
  • dimension: parameter input should be in uint type


Example

<syntaxhighlight lang="csharp"> ColShape cylinder = NAPI.ColShape.CreateCylinderColShape(new Vector3(), 10.0f, 5.0f); </syntaxhighlight>