taskWrithe
TASK_WRITHE0xCDDC2B77CE54AC6EThe GTA V native TASK_WRITHE of the TASK namespace, as LS:MP client scripts call it: the global function taskWrithe, in JavaScript and in Lua.
taskWrithe(
ped: Ped,
target: Ped,
minFireLoops: number,
startState: number,
forceShootOnGround: boolean,
shootFromGroundTimer: number
): voidtaskWrithe(
ped: Ped,
target: Ped,
minFireLoops: integer,
startState: integer,
forceShootOnGround: boolean,
shootFromGroundTimer: integer
)Usage
taskWrithe(ped, target, minFireLoops, startState, forceShootOnGround, shootFromGroundTimer);taskWrithe(ped, target, minFireLoops, startState, forceShootOnGround, shootFromGroundTimer)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
target | Ped | number | integer |
minFireLoops | int | number | integer |
startState | int | number | integer |
forceShootOnGround | BOOL | boolean | boolean |
shootFromGroundTimer | 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.
EX: Function.Call(Ped1, Ped2, Time, 0);The last parameter is always 0 for some reason I do not know. The first parameter is the pedestrian who will writhe to the pedestrian in the other parameter. The third paremeter is how long until the Writhe task ends. When the task ends, the ped will die. If set to -1, he will not die automatically, and the task will continue until something causes it to end. This can be being touched by an entity, being shot, explosion, going into ragdoll, having task cleared. Anything that ends the current task will kill the ped at this point.
Third parameter does not appear to be time. The last parameter is not implemented (It's not used, regardless of value).
Reference
- Namespace
- Tasks TASK
- In the game
void TASK_WRITHE(Ped ped, Ped target, int minFireLoops, int startState, BOOL forceShootOnGround, int shootFromGroundTimer)- Hash
0xCDDC2B77CE54AC6E