CreateCylinderColShape

From RAGE Multiplayer Wiki
Revision as of 18:23, 28 November 2019 by Xabi (talk | contribs) (Created page with "Creates a cylinder shaped colshape object. {{CSharpContainer| {{#tag:syntaxhighlight|ColShape {{Template:CSharp_Serverside_namespace}}ColShape.CreateCylinderColShape(Vector3...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Creates a cylinder shaped colshape object.


C# Syntax

ColShape NAPI.ColShape.CreateCylinderColShape(Vector3 position, float range, float height, uint dimension = NAPI.GlobalDimension);

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

ColShape cylinder = NAPI.ColShape.CreateCylinderColShape(new Vector3(), 10.0f, 5.0f);