{"hash":"0xDFC2B226D56D85F6","ns":"ENTITY","name":"_GET_ENTITY_COLLISION_INTENSITY","slug":"_GET_ENTITY_COLLISION_INTENSITY","official":false,"named":true,"luaName":"GetEntityCollisionIntensity","game":"rdr3","apiset":"client","returnType":"float","params":[{"name":"entity1","type":"Entity"},{"name":"entity2","type":"Entity"}],"summary":"Returns a collision impact/intensity value between two entities.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns a collision impact/intensity value between two entities.\n\nNotes:\n- Observed usage treats values above roughly 500.0 as a hard hit that can trigger ragdoll behavior when one entity hits another.\n- This is not a simple distance check; the value behaves more like impact force or collision strength.\n- Useful for detecting hard hits between vehicles, peds, objects, etc."},{"source":"vorp","format":"text","body":"Returns a float that appears to represent the collision impact intensity between two entities.\n\nBased on observed usage, this value becomes large when entity1 hits entity2 with enough force. In the example below, if the returned value is greater than 500.0f, the first entity is moving, the second entity is nearly stationary, and the second entity is not already ragdolled, then SET_PED_TO_RAGDOLL is triggered."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_GET_ENTITY_COLLISION_INTENSITY","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_GET_ENTITY_COLLISION_INTENSITY.md","snippets":{"lua":"local retval = GetEntityCollisionIntensity(entity1, entity2)","luaInvoke":"local retval = Citizen.InvokeNative(0xDFC2B226D56D85F6, entity1, entity2, Citizen.ResultAsFloat())","js":"const retval = GetEntityCollisionIntensity(entity1, entity2);","jsInvoke":"const retval = Citizen.invokeNative('0xDFC2B226D56D85F6', entity1, entity2, Citizen.returnResultAnyway(), Citizen.resultAsFloat());","csharp":"float retval = Function.Call<float>((Hash)0xDFC2B226D56D85F6, entity1, entity2);","notes":["The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}