HasEntityClearLOSToEntity

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

Returns whether entity1 has a clear LOS(line of sight) to entity2.

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

In Javascript
Client-Side Function

API.hasEntityClearLOSToEntity(LocalHandle entity1, LocalHandle entity2);

Required Arguments

  • entity1 parameter input should be in LocalHandle type.
  • entity2 parameter input should be in LocalHandle type.


NOTE: This function returns data in bool type.

Usage example

In Javascript
Client-Side Function

API.hasEntityClearLOSToEntity(LocalHandle entity1, LocalHandle entity2);

References