SetPedCameraRotation: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Client function}} __NOTOC__ This function sets the camera rotation of a ped. ==Syntax== <syntaxhighlight lang="lua"> bool setPedCameraRotation ( ped ped, float rx, float ry, float rz ) </syntaxhighlight> ===R...) |
No edit summary |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setPedCameraRotation ( ped | bool setPedCameraRotation ( ped thePed, float rx, float ry, float rz ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''thePed:''' The [[ped]] element whose state is to be changed | ||
*'''rx:''' | *'''rx:''' The new rotation on the X axis of the camera | ||
*'''ry:''' | *'''ry:''' The new rotation on the Y axis of the camera | ||
*'''rz:''' | *'''rz:''' The new rotation on the Z axis of the camera | ||
===Returns=== | ===Returns=== | ||
Returns ''true'' if the camera rotation | Returns ''true'' if the camera rotation was changed, ''false'' otherwise. | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="lua">--TODO</syntaxhighlight> | |||
<syntaxhighlight lang="lua">-- | |||
==See Also== | ==See Also== | ||
{{ | {{Client ped functions}} |
Revision as of 09:11, 3 May 2009
This function sets the camera rotation of a ped.
Syntax
bool setPedCameraRotation ( ped thePed, float rx, float ry, float rz )
Required Arguments
- thePed: The ped element whose state is to be changed
- rx: The new rotation on the X axis of the camera
- ry: The new rotation on the Y axis of the camera
- rz: The new rotation on the Z axis of the camera
Returns
Returns true if the camera rotation was changed, false otherwise.
Example
--TODO
See Also
- canPedBeKnockedOffBike
- getPedAnalogControlState
- getPedAnimation
- getPedBonePosition
- getPedCameraRotation
- getPedControlState
- getPedMoveState
- getPedOxygenLevel
- getPedSimplestTask
- getPedTargetCollision
- getPedTargetEnd
- getPedTargetStart
- getPedTask
- getPedVoice
- getPedWeaponMuzzlePosition
- givePedWeapon
- isPedBleeding
- isPedDoingTask
- isPedReloadingWeapon
- isPedTargetingMarkerEnabled
- setAnalogControlState
- setPedAimTarget
- setPedAnalogControlState
- setPedBleeding
- setPedCameraRotation
- setPedCanBeKnockedOffBike
- setPedControlState
- setPedEnterVehicle
- setPedExitVehicle
- IsPedFootBloodEnabled
- setPedFootBloodEnabled
- setPedLookAt
- setPedOxygenLevel
- setPedTargetingMarkerEnabled
- setPedVoice
- Shared
- addPedClothes
- getPedClothes
- removePedClothes
- createPed
- getPedAmmoInClip
- getPedArmor
- getPedFightingStyle
- getPedOccupiedVehicle
- getPedOccupiedVehicleSeat
- getPedStat
- getPedTarget
- getPedTotalAmmo
- getPedWalkingStyle
- getPedWeapon
- getPedWeaponSlot
- getPedContactElement
- getValidPedModels
- isPedChoking
- isPedDead
- isPedDoingGangDriveby
- isPedDucked
- isPedHeadless
- isPedInVehicle
- isPedOnFire
- isPedOnGround
- isPedWearingJetpack
- killPed
- removePedFromVehicle
- setPedAnimation
- setPedAnimationProgress
- setPedAnimationSpeed
- setPedArmor
- setPedDoingGangDriveby
- setPedFightingStyle
- setPedHeadless
- setPedOnFire
- setPedStat
- setPedWalkingStyle
- setPedWeaponSlot
- warpPedIntoVehicle