PED
IS_PED_IN_COMBAT
0x4859F1FC66A6278E
Jenkins: 0xFE027CB5
Signature
// PED
BOOL IS_PED_IN_COMBAT(Ped ped, Ped target)
Parameters
| Type | Name |
|---|---|
| Ped | ped |
| Ped | target |
Return type BOOL
Build 323
Documentation
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
APPI RP
Join us on FiveM
Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.