CheckGrenadeLaunchPos( <barrel offset>, <targetpos> )


Module: AI
SP Only

Summary:

Checks whether the actor can throw a grenade at a given position. 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 CheckGrenadeLaunchPos( offset, targetPos );



Required Args:

  • 1 : <barrel offset> (vector) the estimated offset of the grenade launcher barrel
  • 2 : <targetpos> (vector) The target position