CreateSphereColShape

From GT-MP
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.

Dialog-warning.png

Note: If shared API was used when creating, then the created entities are not deleted on ResourceStop


Syntax

API.createSphereColShape(Vector3 position, float range);

Required Arguments

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

NOTE: This function returns data in SphereColShape type.

Usage example(s)

Example Description

var shape = API.createSphereColShape(new Vector3(100.0f, 100.0f, 100.0f), 50.0f);
Dialog-warning.png

Note: Resource for Debug

References