Skip to content

Commit

Permalink
fix: Flag for StartShapeTestLosProbe (#899)
Browse files Browse the repository at this point in the history
* Update StartShapeTestLosProbe.md

* feat: fixes

* Final change?

* Update StartShapeTestLosProbe.md

* Update StartShapeTestLosProbe.md

* Update StartShapeTestLosProbe.md

* Apply ammoniums suggestion

* fix paramater being misnamed

---------

Co-authored-by: Dillon Skaggs <[email protected]>
Co-authored-by: Dillon Skaggs <[email protected]>
  • Loading branch information
3 people authored Aug 9, 2024
1 parent 96f6fcd commit 9d6308f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions SHAPETEST/StartShapeTestLosProbe.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ aliases: ["0x7EE9F5D83DD4F90E"]

```c
// 0x7EE9F5D83DD4F90E 0xEFAF4BA6
int START_SHAPE_TEST_LOS_PROBE(float x1, float y1, float z1, float x2, float y2, float z2, int flags, Entity entity, int p8);
int START_SHAPE_TEST_LOS_PROBE(float x1, float y1, float z1, float x2, float y2, float z2, int flags, Entity entity, int options);
```
Asynchronously starts a line-of-sight (raycast) world probe shape test.
Expand All @@ -17,13 +17,14 @@ enum TraceFlags
None = 0,
IntersectWorld = 1,
IntersectVehicles = 2,
IntersectPedsSimpleCollision = 4,
IntersectPeds = 8,
IntersectPeds = 4,
IntersectRagdolls = 8,
IntersectObjects = 16,
IntersectWater = 32,
Unknown = 128,
IntersectGlass = 64,
IntersectRiver = 128,
IntersectFoliage = 256,
IntersectEverything = 4294967295
IntersectEverything = -1
}
```
NOTE: Raycasts that intersect with mission_entites (flag = 2) has limited range and will not register for far away entites. The range seems to be about 30 metres.
Expand All @@ -40,7 +41,7 @@ Use the handle with [GET_SHAPE_TEST_RESULT](#_0x3D87450E15D98694) or [GET_SHAPE_
* **z2**: Ending Z coordinate.
* **flags**: Flags.
* **entity**: An entity to ignore, or 0.
* **p8**: A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.
* **options**: A bit mask with bits 1, 2, 4, or 7 relating to collider types. 4 and 7 are usually used.

## Return value
A shape test handle.
A shape test handle.

0 comments on commit 9d6308f

Please sign in to comment.