# PED::SET_PED_COMBAT_MOVEMENT

- **Hash:** `0x4D9CA1009AFBD057`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `SetPedCombatMovement`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/SET_PED_COMBAT_MOVEMENT

## Signature

```c
void SET_PED_COMBAT_MOVEMENT(Ped ped, int combatMovement);
```

## Parameters

- `ped` (`Ped`)
- `combatMovement` (`int`)

## Returns

`void`

## Description

0 - Stationary (Will just stand in place)
1 - Defensive (Will try to find cover and very likely to blind fire)
2 - Offensive (Will attempt to charge at enemy but take cover as well)
3 - Suicidal Offensive (Will try to flank enemy in a suicidal attack)

## Usage

### Lua

```lua
SetPedCombatMovement(ped, combatMovement)

-- always available, by hash
Citizen.InvokeNative(0x4D9CA1009AFBD057, ped, combatMovement)
```

### JavaScript

```js
SetPedCombatMovement(ped, combatMovement);

// by hash
Citizen.invokeNative('0x4D9CA1009AFBD057', ped, combatMovement);
```

### C#

```csharp
Function.Call((Hash)0x4D9CA1009AFBD057, ped, combatMovement);
```

## Related enums

- [CCombatData__Movement](https://natives.borderlinerp.com/enums/CCombatData__Movement.md) — 5 values

## See also

- [PED::GET_PED_COMBAT_MOVEMENT](https://natives.borderlinerp.com/natives/PED/GET_PED_COMBAT_MOVEMENT.md)

*Sources: alloc8or RDR3 NativeDB.*
