GetPedWeaponMuzzlePosition

From Multi Theft Auto: Wiki
Revision as of 00:19, 13 August 2009 by Arc (talk | contribs) (Created page with '__NOTOC__ {{Client function}} Returns the world position of the muzzle of the weapon that a ped is currently carrying. The weapon muzzle is the end of the gun barrel where the b…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Returns the world position of the muzzle of the weapon that a ped is currently carrying. The weapon muzzle is the end of the gun barrel where the bullets/rockets/... come out.

Syntax

float, float, float getPedWeaponMuzzlePosition ( ped thePed )

Required Arguments

  • thePed: the ped whose weapon muzzle position to retrieve.

Returns

If successful, returns the x/y/z coordinates of the weapon muzzle. Returns false otherwise.

See Also