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 Args:

  • 1 : <hand offset> (vector) the estimated offset of the hand for the throw
  • 2 : <method> (string) The grenade toss method. Can be 'min energy', 'min time', and 'max tune'
  • 3 : <random range> (float) random range from target position to throw at