Call of Duty 4: Scripting Reference - AI::CheckGrenadeThrow
From COD Modding & Mapping Wiki
CheckGrenadeThrow( <hand offset>, <method>, <random range> )
Module: AI
SP Only
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 on: <actor> An actor
Example:
throwvel = self CheckGrenadeThrow( armOffset, "min energy", 0 );
Required arguments:
- <hand offset> (vector) the estimated offset of the hand for the throw
- <method> (string) The grenade toss method. Can be 'min energy', 'min time', and 'max tune'
- <random range> (float) random range from target position to throw at
Optional arguments:
- none
Notes:
- none