REACT_LOOK_AT
Signature
void REACT_LOOK_AT(Ped ped, Ped targetPed, int lookIntensity, int exitAnimation, float duration, int p5, Ped targetPed2, Any p7, Any p8);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
targetPed | Ped | — |
lookIntensity | int | — |
exitAnimation | int | — |
duration | float | — |
p5 | int | — |
targetPed2 | Ped | — |
p7 | Any | — |
p8 | Any | — |
Returns void
Description
lookIntensity: see SET_PED_SHOULD_PLAY_FLEE_SCENARIO_EXIT
exitAnimation: LOOK_RETURN_GENERIC = 1,
LOOK_RETURN_DISMISSIVE = 2,
LOOK_RETURN_RELIEVED = 3
Usage
ReactLookAt(ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8)
-- always works, by hash
Citizen.InvokeNative(0xE7FA07624574B79A, ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8)JavaScript and C#
ReactLookAt(ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8);
// by hash
Citizen.invokeNative('0xE7FA07624574B79A', ped, targetPed, lookIntensity, exitAnimation, duration + 0.0000001, p5, targetPed2, p7, p8);Function.Call((Hash)0xE7FA07624574B79A, ped, targetPed, lookIntensity, exitAnimation, duration, p5, targetPed2, p7, p8);- Float parameters: Lua integers (
10, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write10.0orvalue + 0.0. The generated JS wrappers add0.0000001to non-zero floats for the same reason.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.