Certain Ped Bones not working with native function..?
-
Hey guys, I am trying to port the Ped Damage Overhaul mod from RDR 2 to GTA 5, but I get errors with the bone IDs.
E.g. when I call the following, it works:
ENTITY::APPLY_FORCE_TO_ENTITY(peds[i], 1, x, y, z, 1, 1, 1, PED::GET_PED_BONE_INDEX(peds[i], 63931), 1, 1, 0, 0, 0);But with this bone, I get an error:
ENTITY::APPLY_FORCE_TO_ENTITY(peds[i], 1, x, y, z, 1, 1, 1, PED::GET_PED_BONE_INDEX(peds[i], 61163), 1, 1, 0, 0, 0);I took the IDs from this list: https://wiki.gtanet.work/index.php?title=Bones
Is this list not correct?
Does anyone have a clue why my script crashes with the one line but not with the other?
-
I'm not certain, but the IDs on that list might already be bone indexes. Try using the number without the GET_PED_BONE_INDEX
-
@Jitnaught said in Certain Ped Bones not working with native function..?:
I'm not certain, but the IDs on that list might already be bone indexes. Try using the number without the GET_PED_BONE_INDEX
Thanks for replying - I already tried that, but to no avail, unfortunately