SetPedCameraRotation
From Multi Theft Auto: Wiki
This function sets the camera rotation of a ped.
Syntax
bool setPedCameraRotation ( ped thePed, float cameraRotation )
Required Arguments
- thePed: The ped whose camera rotation is to be changed
- cameraRotation: The new direction that the ped will walk if you set their forwards control state
Returns
Returns true if the camera rotation was changed, false otherwise.
Example
--TODOSee 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