Black Ops III

Target_IsInRect

Returns whether a target is within a given rectangle, centered in the center of the player's screen

Example:

player Target_IsInRect( enemy_chopper, player, 65, 100, 100 )

Parameters

ParameterSummary
*target entityThe entity that is the target
*playerThe player entity
*fovThe player's field of view
*halfwidthhalf the width of the rectangle
*halfheighthalf the height of the rectangle

* = mandatory