Hi guys. I am triyng to understand how Raycast works. My objective is to scan around a ped (like a sonar) until find another ped. It seems that Raycast is a solution for my case. But what START_SHAPE_TEST_CAPSULE does exactly?
Is it only a straight line? Here is the doc from dev-c.com/nativedb/func :
Hashes: 0x28579D1B8F8AAC80 0x591EA833int START_SHAPE_TEST_CAPSULE(float x1, float y1, float z1, float x2, float y2, float z2, float radius, int flags, Entity entity, int p9) // 0x28579D1B8F8AAC80 0x591EA833
Raycast from point to point, where the ray has a radius.
Iterating through flags yields many ped / vehicle/ object combinations
p9 = 7, but no idea what it does
Entity is an entity to ignore