Call of Duty Script Documentation

# checkgrenadethrow( <hand offset>, <method> )

## Module

    AI

## Summary

    Checks whether the actor can throw a grenade at his target. If he can't then result will be undefined, otherwise the result is the resultant velocity vector

## Call this function on

    <actor> An actor

## Example

    throwvel = self checkGrenadeThrow(armOffset, "min energy");

## Minimum Number of arguments: 2

    1 : <hand offset> (vector) the estimated offset of the hand for the throw
    2 : <method> (vector) The grenade toss method. Can be 'min energy', 'min time', and 'max tune'

## Number of optional arguments: 0

Return to Function List