IsInsidePolygon

Returns whether current entity is located inside specified polygon.

 
Returns whether current entity is located inside specified polygon. Coordinates signal names are 'surface x-coordinate' and 'surface y-coordinate'. 

 

Syntax

IsInsidePolygon(string polygonName)

Example

IsInsidePolygon("Area 51")
Returns whether current entity is located inside specified polygon. Coordinates signal names are specified.
Syntax
IsInsidePolygon(string polygonName, string signalXCoordinateName, 
string signalYCoordinateName)

Example

IsInsidePolygon("Area 51", "x-coordinate", "y-coordinate")