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

CreateSphereColShape

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

Creates a spherical collision shape which checks whether an entity is inside of the spherical area.

Syntax

<syntaxhighlight lang="C#" >ColShape NAPI.ColShape.CreateSphereColShape(Vector3 position, float range [, uint dimension = NAPI.GlobalDimension ]);</syntaxhighlight>

Required Arguments

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

NOTE: This function returns data in ColShape type.

Usage example(s)

Example Description <syntaxhighlight lang="C#" > ColShape shape = NAPI.ColShape.CreateSphereColShape(new Vector3(100.0f, 100.0f, 100.0f), 50.0f); </syntaxhighlight>