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

CreateCylinderColShape

Материал из RAGE MP Wiki Archive

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>