taskPutPedDirectlyIntoMelee
TASK_PUT_PED_DIRECTLY_INTO_MELEE0x1C6CD14A876FFE39The GTA V native TASK_PUT_PED_DIRECTLY_INTO_MELEE of the TASK namespace, as LS:MP client scripts call it: the global function taskPutPedDirectlyIntoMelee, in JavaScript and in Lua.
taskPutPedDirectlyIntoMelee(
ped: Ped,
meleeTarget: Ped,
blendInDuration: number,
timeInMelee: number,
strafePhaseSync: number,
aiCombatFlags: number
): voidtaskPutPedDirectlyIntoMelee(
ped: Ped,
meleeTarget: Ped,
blendInDuration: number,
timeInMelee: number,
strafePhaseSync: number,
aiCombatFlags: integer
)Usage
JavaScript
taskPutPedDirectlyIntoMelee(
ped, meleeTarget, blendInDuration, timeInMelee, strafePhaseSync, aiCombatFlags
);Lua
taskPutPedDirectlyIntoMelee(
ped, meleeTarget, blendInDuration, timeInMelee, strafePhaseSync, aiCombatFlags
)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
meleeTarget | Ped | number | integer |
blendInDuration | float | number | number |
timeInMelee | float | number | number |
strafePhaseSync | float | number | number |
aiCombatFlags | int | number | integer |
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.
from armenian3.c4
taskPutPedDirectlyIntoMelee(PlayerPed, armenianPed, 0.0, -1.0, 0.0, 0);Reference
- Namespace
- Tasks TASK
- In the game
void TASK_PUT_PED_DIRECTLY_INTO_MELEE(Ped ped, Ped meleeTarget, float blendInDuration, float timeInMelee, float strafePhaseSync, int aiCombatFlags)- Hash
0x1C6CD14A876FFE39