GetPedWeaponMuzzlePosition
From Multi Theft Auto: Wiki
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
- canPedBeKnockedOffBike
- createPed
- doesPedHaveJetPack
- getPedAmmoInClip
- getPedAnimation
- getPedAnimationData
- getPedArmor
- getPedBonePosition
- getPedClothes
- getPedContactElement
- getPedControlState
- getPedMoveState
- getPedOccupiedVehicle
- getPedRotation
- getPedSimplestTask
- getPedSkin
- getPedStat
- getPedTarget
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedTotalAmmo
- getPedVoice
- getPedWeapon
- getPedWeaponMuzzlePosition
- getPedWeaponSlot
- isPedChoking
- isPedDoingGangDriveby
- isPedDoingTask
- isPedDucked
- isPedFrozen
- isPedHeadless
- isPedInVehicle
- isPedInWater
- isPedOnFire
- isPedOnGround
- setPedAimTarget
- setPedAnimation
- setPedCameraRotation
- setPedCanBeKnockedOffBike
- setPedControlState
- setPedDoingGangDriveby
- setPedFrozen
- setPedHeadless
- setPedLookAt
- setPedOnFire
- setPedRotation
- setPedSkin
- setPedVoice
- setPedWeaponSlot
- setPedFootBloodEnabled