taskSweepAimEntity
TASK_SWEEP_AIM_ENTITY0x2047C02158D6405AThe GTA V native TASK_SWEEP_AIM_ENTITY of the TASK namespace, as LS:MP client scripts call it: the global function taskSweepAimEntity, in JavaScript and in Lua.
taskSweepAimEntity(
ped: Ped,
animDict: string,
lowAnimName: string,
medAnimName: string,
hiAnimName: string,
runtime: number,
targetEntity: Entity,
turnRate: number,
blendInDuration: number
): voidtaskSweepAimEntity(
ped: Ped,
animDict: string,
lowAnimName: string,
medAnimName: string,
hiAnimName: string,
runtime: integer,
targetEntity: Entity,
turnRate: number,
blendInDuration: number
)Usage
JavaScript
taskSweepAimEntity(
ped, animDict, lowAnimName, medAnimName, hiAnimName, runtime, targetEntity, turnRate,
blendInDuration
);Lua
taskSweepAimEntity(
ped, animDict, lowAnimName, medAnimName, hiAnimName, runtime, targetEntity, 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 |
targetEntity | Entity | number | integer |
turnRate | float | number | number |
blendInDuration | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
This function is called on peds in vehicles.
anim: animation name
p2, p3, p4: "sweep_low", "sweep_med" or "sweep_high"
p5: no idea what it does but is usually -1
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_SWEEP_AIM_ENTITY(Ped ped, const char* animDict, const char* lowAnimName, const char* medAnimName, const char* hiAnimName, int runtime, Entity targetEntity, float turnRate, float blendInDuration)- Hash
0x2047C02158D6405A