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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Revision as of 23:24, 30 July 2009 by CoDEmanX (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


CanShoot( <shoot at position>, <offset from gun> )

Module: AI
SP Only

Summary:

Check to see if the actor can shoot the given position.


Call this on: <actor> An actor

Example:

 canShoot = self CanShoot( eye, offset );

Required arguments:

  1. <shoot at position> (vector) The position to shoot at.
  2. <offset from gun> (vector) The offset from the gun muzzle from which to calculate collision.


Optional arguments:

none


Notes:

none