Call of Duty Script Documentation

# canshoot( <shoot at position> <offset from gun>)

## Module

    AI

## Summary

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

## Call this function on

    <actor> An actor

## Example

     canShoot = self canshoot( eye, offset );

## Minimum Number of arguments: 2

    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.

## Number of optional arguments: 0

Return to Function List