Menu
Lumberyard
Legacy Reference

AI Shape

An AI shape is an object which can be used to define an area which AI will use for combat and will search for anchors within.

Parameters

Parameter Description
AnchorType Affects AI behaviors in the same way as the anchors do. The main usage is to check if a point (AI position, target position, etc) is inside a shape of a given AnchorType, in the same way as checking the proximity to an anchor of a given type.
LightLevel Affects AI's ability to see (including sight range and speed of detection).
Width Specifies how wide the entity is.
Height Specifies how high the shape area should be (0 means infinite height).
AreaId Sets up the ID of the area, so areas with another ID can overlap.
GroupId Sets up the Group ID of the area, so areas with another group ID can overlap.
Priority Defines the Priority so areas with a higher priority will be processed first.
Closed Sets if the area should be closed or if it should be just a line.
DisplayFilled Just for visibility in the editor this option defines if the area should be rendered as filled or not.
DisplaySoundInfo Enable to expand Sound Obstruction options.
Agent_height When Render_voxel_grid is enabled this determines the height along the y-axis of the rendered grid cells.
Agent_width When Render_voxel_grid is enabled this determines the height along the x-axis of the rendered grid cells.
Render_voxel_grid If true, voxel grid will be rendered when helpers are enabled.
voxel_offset_x Offset voxel grid on the x-axis.
voxel_offset_y Offset voxel grid on the y-axis.