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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 23:54, 30 July 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=MayMoveToPoint( <Position> ) |Module=AI |Available=SP Only |Summary=Check whether the actor can move to a given point. |Call_on=<actor> An actor |Ex...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


MayMoveToPoint( <Position> )

Module: AI
SP Only

Summary:

Check whether the actor can move to a given point.


Call this on: <actor> An actor

Example:

 if ( !self MayMoveToPoint( endPoint ) )...

Required arguments:

  1. <position> (point) The position that the actor may be able to move to.


Optional arguments:

  1. <check drop> checks if the point would cause the AI to drop. Defaults to true.


Notes:

none