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

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=MayMoveFromPointToPoint( <start> <end> ) |Module=AI |Available=SP Only |Summary=Check whether the actor can move from a given point to a given point...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


MayMoveFromPointToPoint( <start> <end> )

Module: AI
SP Only

Summary:

Check whether the actor can move from a given point to a given point. Does not check friendly fire and in goal radius unlike maymovetopoint


Call this on: <actor> An actor

Example:

 if ( !self MayMoveFromPointToPoint( startPoint endPoint ) )...

Required arguments:

  1. <start> (point) start position.
  2. <end> (point) end position.


Optional arguments:

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


Notes:

none