taskSweepAimPosition
TASK_SWEEP_AIM_POSITION0x7AFE8FDC10BC07D2The GTA V native TASK_SWEEP_AIM_POSITION of the TASK namespace, as LS:MP client scripts call it: the global function taskSweepAimPosition, in JavaScript and in Lua.
taskSweepAimPosition(
ped: Ped,
animDict: string,
lowAnimName: string,
medAnimName: string,
hiAnimName: string,
runtime: number,
x: number,
y: number,
z: number,
turnRate: number,
blendInDuration: number
): voidtaskSweepAimPosition(
ped: Ped,
animDict: string,
lowAnimName: string,
medAnimName: string,
hiAnimName: string,
runtime: integer,
x: number,
y: number,
z: number,
turnRate: number,
blendInDuration: number
)Usage
JavaScript
taskSweepAimPosition(
ped, animDict, lowAnimName, medAnimName, hiAnimName, runtime, x, y, z, turnRate,
blendInDuration
);Lua
taskSweepAimPosition(
ped, animDict, lowAnimName, medAnimName, hiAnimName, runtime, x, y, z, turnRate,
blendInDuration
)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
taskSweepAimPosition(
ped, animDict, lowAnimName, medAnimName, hiAnimName, runtime, pos, turnRate, blendInDuration
);Lua · with vectors
taskSweepAimPosition(
ped, animDict, lowAnimName, medAnimName, hiAnimName, runtime, pos, turnRate, blendInDuration
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
animDict | string | string | string |
lowAnimName | string | string | string |
medAnimName | string | string | string |
hiAnimName | string | string | string |
runtime | int | number | integer |
x | float | number | number |
y | float | number | number |
z | float | number | number |
turnRate | float | number | number |
blendInDuration | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_SWEEP_AIM_POSITION(Ped ped, const char* animDict, const char* lowAnimName, const char* medAnimName, const char* hiAnimName, int runtime, float x, float y, float z, float turnRate, float blendInDuration)- Hash
0x7AFE8FDC10BC07D2