CreateSphereColShape

From GTA Network Wiki
Jump to: navigation, search

CreateSphereColShape
Server-Side Function

utilities-terminal.png Server-Side csharp.png C#

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

Syntax

ColShape NAPI.ColShape.CreateSphereColShape(Vector3 position, float range [, uint dimension = NAPI.GlobalDimension ]);

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

ColShape shape = NAPI.ColShape.CreateSphereColShape(new Vector3(100.0f, 100.0f, 100.0f), 50.0f);

Changelog

Version Description
1.0 Release.

References