diff --git a/PED/IsPedInCombat.md b/PED/IsPedInCombat.md index 8127354a5..1a45a67ae 100644 --- a/PED/IsPedInCombat.md +++ b/PED/IsPedInCombat.md @@ -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