SentryCompOpt:

Options for the sentry component.

direction?: Vec2 | number

The direction the sentry is pointing to. If undefined, direction has no influence.

fieldOfView?: number

The field of view of the sentry in degrees. If undefined, defaults to human fov of 200 degrees.

lineOfSight?: boolean

If true, line of sight matters. This means that objects which are blocked from view by areas are invisible.

raycastExclude?: string[]

When using line of sight, the objects which are transparent for the ray. Include at least a tag identifying the sentry.

checkFrequency?: number

The frequency of checking, defaults to every second.

kaplay logo

Misc

Layer