Create3DColShape

From GTA Network Wiki
Jump to: navigation, search

Create3DColShape
Server-Side Function

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

Creates a 3D collision shape which checks whether an entity is inside of a rectangular area. If you don't care about the height, you can use Create2DColShape instead.

Syntax

ColShape NAPI.ColShape.Create3DColShape(Vector3 start, Vector3 end [, uint dimension = NAPI.GlobalDimension ]);

Required Arguments

  • start: parameter input should be in Vector3 type.
  • end: parameter input should be in Vector3 type.

Optional Arguments

  • 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.Create3DColShape(new Vector3(100.0f, 100.0f, 100.0f), new Vector3(200.0f, 200.0f, 200.0f));

Changelog

Version Description
1.0 Release.

References