Call of Duty 4: Scripting Reference - AI::CheckGrenadeLaunch
From COD Modding & Mapping Wiki
CheckGrenadeLaunch( <barrel offset> )
Module: AI
SP Only
Summary:
Checks whether the actor can launch 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 CheckGrenadeLaunch( offset );
Required arguments:
- <barrel offset> (vector) the estimated offset of the grenade launcher barrel
Optional arguments:
- none
Notes:
- none