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

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


NearPoint(<point>)

Module: AI
SP Only

Summary:

Determine whether this actor is near to a given point.


Call this on: <actor> An actor

Example:

if ( ai nearpoint(nodepos) )...

Required arguments:

  1. <point> The position to check.


Optional arguments:

none


Notes:

none