Find_Cone

Category: Objects / Search
Since engine version: 8.0 OC

Description

Search criterion: finds all objects within the cone with specified radius, cone angle and cone width with the tip of the cone originating at the specified coordinates. If no coordinates are specified, the position of the calling object is used.

Syntax

array Find_Cone(int radius, int cone_angle, int cone_width, int x, int y, int prec_angle);

Parameters

radius:
Cone radius.
cone_angle:
The angle in which direction the cone points, zero means upwards and positive angles rotate clockwise.
cone_width:
The angular width of the cone, all object within an angle of cone_angle - cone_width and cone_angle + cone_width will be found.
x:
[opt] Distance reference point. In local calls, relative to the calling object.
y:
[opt] Distance reference point. In local calls, relative to the calling object.
prec_angle:
[opt] Precision for the cone_angle and cone_width parameters. For a higher precision while working with integers (whole numbers) you can specify a higher precision value. A precision of 10 will induce an angle range from 0 to 3600.

Remark

For additional information on the use of this function see FindObjects.
See also: FindObjects
Maikel, 2017-7