Skip to content

Commit

Permalink
feat(natives/2189): update natives from the 2189 gamebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
spacevx committed Dec 26, 2023
1 parent 055024b commit 0d8399f
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 70 deletions.
18 changes: 0 additions & 18 deletions INTERIOR/ClearInteriorForEntity.md

This file was deleted.

22 changes: 22 additions & 0 deletions INTERIOR/ClearInteriorStateOfEntity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: INTERIOR
aliases: ["_CLEAR_INTERIOR_FOR_ENTITY"]
---
## CLEAR_INTERIOR_STATE_OF_ENTITY

```c
// 0x85D5422B2039A70D
void CLEAR_INTERIOR_STATE_OF_ENTITY(Entity entity);
```
Forces an entity out of its retained interior state, effectively resetting it to a clean state in the exterior world.
```
NativeDB Introduced: v2189
```
## Parameters
* **entity**: The entity to be transitioned from its interior state to the exterior world.
## Return value
This native does not return any value.
17 changes: 0 additions & 17 deletions OBJECT/N_0x31574b1b41268673.md

This file was deleted.

23 changes: 23 additions & 0 deletions OBJECT/SetPropTintIndex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
ns: OBJECT
aliases: ["0x31574B1B41268673"]
---
## SET_PROP_TINT_INDEX

```c
// 0x31574B1B41268673
void SET_PROP_TINT_INDEX(Object object, int tint);
```
Applies a specified tint index to a prop object (e.g. parachute).
```
NativeDB Introduced: v2189
```
## Parameters
* **object**: The prop object to which the tint will be applied.
* **tint**: The tint index to set on the object.
## Return value
This native does not return any value.
18 changes: 0 additions & 18 deletions PATHFIND/SetAiGlobalPathNodesType.md

This file was deleted.

22 changes: 22 additions & 0 deletions PATHFIND/SetAllowStreamHeistIslandNodes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
ns: PATHFIND
aliases: ["_SET_AI_GLOBAL_PATH_NODES_TYPE"]
---
## SET_ALLOW_STREAM_HEIST_ISLAND_NODES

```c
// 0xF74B1FFA4A15FBEA
void SET_ALLOW_STREAM_HEIST_ISLAND_NODES(int type);
```
Enables or disables the streaming of road nodes for the Heist Island, specifically Cayo Perico. Setting type to 1 activates the path nodes, allowing GPS navigation to function on the island. However, setting it to 0 to deactivate these nodes, especially when near the island, may cause the game to crash. Note that setting this to true also disables main level and prologue nodes from streaming, so it should be set back to false when no longer needed.
```
NativeDB Introduced: v2189
```
## Parameters
* **type**: Pass `1` to enable Heist Island road nodes, `0` to disable them.
## Return value
This native does not return any value.
17 changes: 0 additions & 17 deletions VEHICLE/N_0x8664170ef165c4a6.md

This file was deleted.

23 changes: 23 additions & 0 deletions VEHICLE/SetIgnorePlanesSmallPitchChange.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
ns: VEHICLE
aliases: ["0x8664170EF165C4A6"]
---
## SET_IGNORE_PLANES_SMALL_PITCH_CHANGE

```c
// 0x8664170EF165C4A6
void SET_IGNORE_PLANES_SMALL_PITCH_CHANGE(Vehicle vehicle, cs_type(Any) BOOL ignorePitching);
```
Configures aircraft to disregard minor pitch variations.
```
NativeDB Introduced: v2189
```
## Parameters
* **vehicle**: The aircraft to apply this setting to.
* **ignorePitching**: A boolean value where `true` enables the aircraft to ignore small pitch changes, and `false` allows the aircraft to respond to these pitch variations.
## Return value
This native does not return any value.

0 comments on commit 0d8399f

Please sign in to comment.