_TASK_FORCE_THROWABLE_AT_ENTITY_WHILE_AIMING
Forces a ped to attack a target with throwable or projectile weapons (like bows, throwing knives, tomahawks, dynamite) for a specified duration while aiming With a bow: the ped keeps firing arrows continuously until durationMs expires (as long as the aiming condition is maintained).With other throwables: throws are generally single-use (one per animation cycle).Excluded weapons: lasso and bolas
TASKBuild 1207
Signature
lua
TaskForceThrowableAtEntityWhileAiming(PlayerPedId(), targetEntity, 0, true, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Ped | — | |
| Entity | — | |
| int | — | |
| BOOL | — | |
| BOOL | — |
Usage
lua
TaskForceThrowableAtEntityWhileAiming(PlayerPedId(), targetEntity, 0, true, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- Source
- VORPCORE/RDR3natives
Source: VORPCORE/RDR3natives
