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

Module: AI
SP Only


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

Call this on:

<actor> An actor


 canShoot = self CanShoot( eye, offset );

Required Args:

  • 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.