SetPedAimTarget: Difference between revisions
Jump to navigation
Jump to search
(New page: __NOTOC__ {{Client function}} This function allows you to set a ped's aim target to a specific point. ==Syntax== <syntaxhighlight lang="lua"> bool setPedAimTarget ( ped thePed, float x, float y, float ...) |
|||
Line 26: | Line 26: | ||
==See Also== | ==See Also== | ||
{{ | {{Client ped functions}} |
Revision as of 13:22, 22 May 2009
This function allows you to set a ped's aim target to a specific point.
Syntax
bool setPedAimTarget ( ped thePed, float x, float y, float z )
Required Arguments
- thePed: The ped whose target you want to set.
- x: The x coordinate of the aim target point.
- y: The y coordinate of the aim target point.
- z: The z coordinate of the aim target point.
Returns
Returns true if the function was successful, false otherwise.
Example
function createPedAndsetHisAimTarget () createPed (0, 0, 0, 5 ) -- create a ped, who looks like cj, in the middle of the map setPedAimTarget ( ped, 10, 10, 5 ) -- set the ped's target to a point in North-East end
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