SetPedVoice: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua">bool setPedVoice ( ped thePed, int type, string | <syntaxhighlight lang="lua">bool setPedVoice ( ped thePed, int type, string voice )</syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''thePed:''' the ped whose voice to change. | *'''thePed:''' the ped whose voice to change. | ||
*'''type:''' a number from 0 to 4 that specifies a voice type. | *'''type:''' a number from 0 to 4 that specifies a voice type. | ||
*''' | *'''voice:''' name of the first voice to use from the type. See [[ped voices]]. | ||
===Returns=== | ===Returns=== |
Revision as of 17:33, 30 November 2008
Changes the voice of a ped.
Syntax
bool setPedVoice ( ped thePed, int type, string voice )
Required Arguments
- thePed: the ped whose voice to change.
- type: a number from 0 to 4 that specifies a voice type.
- voice: name of the first voice to use from the type. See ped voices.
Returns
Returns true when the voice was successfully set, false otherwise.
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