CreateRaycastCapsule

From GT-MP
Jump to: navigation, search
CreateRaycastCapsule
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Creates a raycast capsule

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

Overload 1

In Javascript
Client-Side Function

API.createRaycastCapsule(Vector3 source, Vector3 target, double radius, int flag, LocalHandle? ignoreEntity);

Required Arguments

  • source parameter input should be in Vector3 type.
  • target parameter input should be in Vector3 type.
  • radius parameter input should be in double type.
  • flag parameter input should be in int type.
  • ignoreEntity parameter input should be in LocalHandle? type.


NOTE: This function returns data in Raycast type.


Overload 2

In Javascript
Client-Side Function

API.createRaycastCapsule(Vector3 source, Vector3 direction, float maxDistance, float radius, int flag, LocalHandle? ignoreEntity);

Required Arguments

  • source parameter input should be in Vector3 type.
  • direction parameter input should be in Vector3 type.
  • maxDistance parameter input should be in float type.
  • radius parameter input should be in float type.
  • flag parameter input should be in int type.
  • ignoreEntity parameter input should be in LocalHandle? type.


NOTE: This function returns data in Raycast type.

Usage examples

Overload 1

In Javascript
Client-Side Function

API.createRaycastCapsule(Vector3 source, Vector3 target, double radius, int flag, LocalHandle? ignoreEntity);

Overload 2

In Javascript
Client-Side Function

API.createRaycastCapsule(Vector3 source, Vector3 direction, float maxDistance, float radius, int flag, LocalHandle? ignoreEntity);


References