Skip to content

Commit

Permalink
Update IsPedInCombat.md
Browse files Browse the repository at this point in the history
Improve current description.
  • Loading branch information
PsychoShock committed Dec 25, 2023
1 parent a64c3f7 commit 10621d7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions PED/IsPedInCombat.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ ns: PED
BOOL IS_PED_IN_COMBAT(Ped ped, Ped target);
```
```
Checks to see if ped and target are in combat with eachother. Only goes one-way: if target is engaged in combat with ped but ped has not yet reacted, the function will return false until ped starts fighting back.
p1 is usually 0 in the scripts because it gets the ped id during the task sequence. For instance: PED::IS_PED_IN_COMBAT(l_42E[4/*14*/], PLAYER::PLAYER_PED_ID()) // armenian2.ct4: 43794
```
Examines whether the ped is engaged in combat; when given a target ped index, it confirms if the ped is actively fighting the specified target, returning true if engaged and false if not.
## Parameters
* **ped**:
* **ped**: Ped index.
* **target**:
## Return value

0 comments on commit 10621d7

Please sign in to comment.