Create3DColShape

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

Dialog-warning.png

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


Syntax

In C#
Server-Side Function

API.create3DColShape(Vector3 start, Vector3 end);

Required Arguments

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


NOTE: This function returns data in Rectangle3DColShape type.

Icon-info.png
Useful Debugger

Resource for Debug


Usage example

In C#
Server-Side Function

var shape = API.create3DColShape(new Vector3(100.0f, 100.0f, 100.0f), new Vector3(200.0f, 200.0f, 200.0f));

References