Call of Duty 4: Scripting Reference - AI::IsKnownEnemyInRadius

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


IsKnownEnemyInRadius()

Module: AI
SP Only

Summary:

Checks if there is a known enemy in a radius for an AI.


Call this on: <actor> An actor

Example:

if ( self IsKnownEnemyInRadius( pos, radius ) ) ...

Required arguments:

  1. <position> center of radius to check.
  2. <radius>


Optional arguments:

none


Notes:

none