@nativewrappers/redm-codegen 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/classes/AnimScene.d.ts +82 -82
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +124 -124
  4. package/dist/classes/BaseModel.d.ts +29 -29
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +43 -43
  7. package/dist/classes/BaseTask.d.ts +43 -43
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +53 -53
  10. package/dist/classes/Cam.d.ts +82 -82
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +115 -115
  13. package/dist/classes/Entity.d.ts +250 -250
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +350 -350
  16. package/dist/classes/Interior.d.ts +27 -27
  17. package/dist/classes/Interior.d.ts.map +1 -1
  18. package/dist/classes/Interior.js +42 -42
  19. package/dist/classes/Ped.d.ts +55 -55
  20. package/dist/classes/Ped.d.ts.map +1 -1
  21. package/dist/classes/Ped.js +76 -76
  22. package/dist/classes/PedTask.d.ts +797 -797
  23. package/dist/classes/PedTask.d.ts.map +1 -1
  24. package/dist/classes/PedTask.js +1023 -1023
  25. package/dist/classes/PersChar.d.ts +13 -13
  26. package/dist/classes/PersChar.d.ts.map +1 -1
  27. package/dist/classes/PersChar.js +27 -27
  28. package/dist/classes/Pickup.d.ts +8 -8
  29. package/dist/classes/Pickup.d.ts.map +1 -1
  30. package/dist/classes/Pickup.js +15 -15
  31. package/dist/classes/Player.d.ts +185 -185
  32. package/dist/classes/Player.d.ts.map +1 -1
  33. package/dist/classes/Player.js +251 -251
  34. package/dist/classes/Prop.d.ts +130 -130
  35. package/dist/classes/Prop.d.ts.map +1 -1
  36. package/dist/classes/Prop.js +188 -188
  37. package/dist/classes/PropSet.d.ts +17 -17
  38. package/dist/classes/PropSet.d.ts.map +1 -1
  39. package/dist/classes/PropSet.js +25 -25
  40. package/dist/classes/VehicleTask.d.ts +23 -23
  41. package/dist/classes/VehicleTask.d.ts.map +1 -1
  42. package/dist/classes/VehicleTask.js +30 -30
  43. package/dist/classes/Volume.d.ts +39 -39
  44. package/dist/classes/Volume.d.ts.map +1 -1
  45. package/dist/classes/Volume.js +54 -54
  46. package/dist/classes/Weapon.d.ts +291 -291
  47. package/dist/classes/Weapon.d.ts.map +1 -1
  48. package/dist/classes/Weapon.js +414 -414
  49. package/dist/namespaces/Animscene.d.ts +63 -63
  50. package/dist/namespaces/Animscene.d.ts.map +1 -1
  51. package/dist/namespaces/Animscene.js +83 -83
  52. package/dist/namespaces/Audio.d.ts +464 -464
  53. package/dist/namespaces/Audio.d.ts.map +1 -1
  54. package/dist/namespaces/Audio.js +650 -650
  55. package/dist/namespaces/Bounty.d.ts +57 -57
  56. package/dist/namespaces/Bounty.d.ts.map +1 -1
  57. package/dist/namespaces/Bounty.js +90 -90
  58. package/dist/namespaces/CamStatics.d.ts +426 -426
  59. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  60. package/dist/namespaces/CamStatics.js +609 -609
  61. package/dist/namespaces/Collection.d.ts +81 -81
  62. package/dist/namespaces/Collection.d.ts.map +1 -1
  63. package/dist/namespaces/Collection.js +113 -113
  64. package/dist/namespaces/Compendium.d.ts +38 -38
  65. package/dist/namespaces/Compendium.d.ts.map +1 -1
  66. package/dist/namespaces/Compendium.js +52 -52
  67. package/dist/namespaces/Crashlog.d.ts +10 -10
  68. package/dist/namespaces/Crashlog.d.ts.map +1 -1
  69. package/dist/namespaces/Crashlog.js +14 -14
  70. package/dist/namespaces/Databinding.d.ts +174 -174
  71. package/dist/namespaces/Databinding.d.ts.map +1 -1
  72. package/dist/namespaces/Databinding.js +266 -266
  73. package/dist/namespaces/EntityStatics.d.ts +110 -110
  74. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  75. package/dist/namespaces/EntityStatics.js +146 -146
  76. package/dist/namespaces/Graphics.d.ts +547 -547
  77. package/dist/namespaces/Graphics.d.ts.map +1 -1
  78. package/dist/namespaces/Graphics.js +731 -731
  79. package/dist/namespaces/Hud.d.ts +395 -395
  80. package/dist/namespaces/Hud.d.ts.map +1 -1
  81. package/dist/namespaces/Hud.js +564 -564
  82. package/dist/namespaces/InteriorStatics.d.ts +40 -40
  83. package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
  84. package/dist/namespaces/InteriorStatics.js +56 -56
  85. package/dist/namespaces/Inventory.d.ts +107 -107
  86. package/dist/namespaces/Inventory.d.ts.map +1 -1
  87. package/dist/namespaces/Inventory.js +149 -149
  88. package/dist/namespaces/Itemdatabase.d.ts +5 -5
  89. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  90. package/dist/namespaces/Itemdatabase.js +7 -7
  91. package/dist/namespaces/Map.d.ts +173 -173
  92. package/dist/namespaces/Map.d.ts.map +1 -1
  93. package/dist/namespaces/Map.js +240 -240
  94. package/dist/namespaces/Minigame.d.ts +56 -56
  95. package/dist/namespaces/Minigame.d.ts.map +1 -1
  96. package/dist/namespaces/Minigame.js +80 -80
  97. package/dist/namespaces/Network.d.ts +964 -964
  98. package/dist/namespaces/Network.d.ts.map +1 -1
  99. package/dist/namespaces/Network.js +1333 -1333
  100. package/dist/namespaces/Object.d.ts +240 -240
  101. package/dist/namespaces/Object.d.ts.map +1 -1
  102. package/dist/namespaces/Object.js +337 -337
  103. package/dist/namespaces/Pad.d.ts +95 -95
  104. package/dist/namespaces/Pad.d.ts.map +1 -1
  105. package/dist/namespaces/Pad.js +127 -127
  106. package/dist/namespaces/PedStatics.d.ts +18 -18
  107. package/dist/namespaces/PedStatics.d.ts.map +1 -1
  108. package/dist/namespaces/PedStatics.js +26 -26
  109. package/dist/namespaces/Perschar.d.ts +46 -46
  110. package/dist/namespaces/Perschar.d.ts.map +1 -1
  111. package/dist/namespaces/Perschar.js +66 -66
  112. package/dist/namespaces/Physics.d.ts +207 -207
  113. package/dist/namespaces/Physics.d.ts.map +1 -1
  114. package/dist/namespaces/Physics.js +315 -315
  115. package/dist/namespaces/PlayerStatics.d.ts +68 -68
  116. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  117. package/dist/namespaces/PlayerStatics.js +95 -95
  118. package/dist/namespaces/Population.d.ts +86 -86
  119. package/dist/namespaces/Population.d.ts.map +1 -1
  120. package/dist/namespaces/Population.js +116 -116
  121. package/dist/namespaces/Posse.d.ts +43 -43
  122. package/dist/namespaces/Posse.d.ts.map +1 -1
  123. package/dist/namespaces/Posse.js +67 -67
  124. package/dist/namespaces/Propset.d.ts +59 -59
  125. package/dist/namespaces/Propset.d.ts.map +1 -1
  126. package/dist/namespaces/Propset.js +81 -81
  127. package/dist/namespaces/Shapetest.d.ts +11 -11
  128. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  129. package/dist/namespaces/Shapetest.js +13 -13
  130. package/dist/namespaces/Stats.d.ts +90 -90
  131. package/dist/namespaces/Stats.d.ts.map +1 -1
  132. package/dist/namespaces/Stats.js +127 -127
  133. package/dist/namespaces/Streaming.d.ts +127 -127
  134. package/dist/namespaces/Streaming.d.ts.map +1 -1
  135. package/dist/namespaces/Streaming.js +193 -193
  136. package/dist/namespaces/Task.d.ts +346 -346
  137. package/dist/namespaces/Task.d.ts.map +1 -1
  138. package/dist/namespaces/Task.js +525 -525
  139. package/dist/namespaces/Telemetry.d.ts +176 -176
  140. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  141. package/dist/namespaces/Telemetry.js +255 -255
  142. package/dist/namespaces/VolumeStatics.d.ts +64 -64
  143. package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
  144. package/dist/namespaces/VolumeStatics.js +85 -85
  145. package/dist/namespaces/Water.d.ts +27 -27
  146. package/dist/namespaces/Water.d.ts.map +1 -1
  147. package/dist/namespaces/Water.js +41 -41
  148. package/dist/namespaces/WeaponStatics.d.ts +234 -234
  149. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  150. package/dist/namespaces/WeaponStatics.js +320 -320
  151. package/dist/namespaces/Zone.d.ts +7 -7
  152. package/dist/namespaces/Zone.d.ts.map +1 -1
  153. package/dist/namespaces/Zone.js +9 -9
  154. package/package.json +1 -1
  155. package/src/classes/AnimScene.ts +133 -133
  156. package/src/classes/BaseModel.ts +50 -50
  157. package/src/classes/BaseTask.ts +55 -55
  158. package/src/classes/Cam.ts +126 -126
  159. package/src/classes/Entity.ts +365 -365
  160. package/src/classes/Interior.ts +43 -43
  161. package/src/classes/Ped.ts +86 -86
  162. package/src/classes/PedTask.ts +2067 -2067
  163. package/src/classes/PersChar.ts +34 -34
  164. package/src/classes/Pickup.ts +16 -16
  165. package/src/classes/Player.ts +296 -296
  166. package/src/classes/Prop.ts +203 -203
  167. package/src/classes/PropSet.ts +29 -29
  168. package/src/classes/VehicleTask.ts +32 -32
  169. package/src/classes/Volume.ts +61 -61
  170. package/src/classes/Weapon.ts +427 -427
  171. package/src/namespaces/Animscene.ts +86 -86
  172. package/src/namespaces/Audio.ts +760 -760
  173. package/src/namespaces/Bounty.ts +102 -102
  174. package/src/namespaces/CamStatics.ts +631 -631
  175. package/src/namespaces/Collection.ts +114 -114
  176. package/src/namespaces/Compendium.ts +59 -59
  177. package/src/namespaces/Crashlog.ts +16 -16
  178. package/src/namespaces/Databinding.ts +282 -282
  179. package/src/namespaces/EntityStatics.ts +158 -158
  180. package/src/namespaces/Graphics.ts +1140 -1140
  181. package/src/namespaces/Hud.ts +592 -592
  182. package/src/namespaces/InteriorStatics.ts +64 -64
  183. package/src/namespaces/Inventory.ts +165 -165
  184. package/src/namespaces/Itemdatabase.ts +8 -8
  185. package/src/namespaces/Map.ts +256 -256
  186. package/src/namespaces/Minigame.ts +92 -92
  187. package/src/namespaces/Network.ts +1392 -1392
  188. package/src/namespaces/Object.ts +350 -350
  189. package/src/namespaces/Pad.ts +127 -127
  190. package/src/namespaces/PedStatics.ts +30 -30
  191. package/src/namespaces/Perschar.ts +76 -76
  192. package/src/namespaces/Physics.ts +327 -327
  193. package/src/namespaces/PlayerStatics.ts +103 -103
  194. package/src/namespaces/Population.ts +131 -131
  195. package/src/namespaces/Posse.ts +67 -67
  196. package/src/namespaces/Propset.ts +92 -92
  197. package/src/namespaces/Shapetest.ts +14 -14
  198. package/src/namespaces/Stats.ts +143 -143
  199. package/src/namespaces/Streaming.ts +226 -226
  200. package/src/namespaces/Task.ts +498 -498
  201. package/src/namespaces/Telemetry.ts +261 -261
  202. package/src/namespaces/VolumeStatics.ts +87 -87
  203. package/src/namespaces/Water.ts +47 -47
  204. package/src/namespaces/WeaponStatics.ts +325 -325
  205. package/src/namespaces/Zone.ts +10 -10
@@ -95,127 +95,85 @@ export declare class Entity implements IHandle {
95
95
  */
96
96
  isDead(): boolean;
97
97
  /**
98
- * @param playerPedToIgnore
99
- * @param flags
98
+ * @param pos1
99
+ * @param pos2
100
+ * @param p7
101
+ * @param p8
102
+ * @param p9
100
103
  * @returns
101
104
  */
102
- getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
105
+ isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
103
106
  /**
104
- * Gets the Y-component of the entity's forward vector.
107
+ * Returns the coordinates of an entity-bone.
108
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
105
109
  *
110
+ * @param boneIndex
106
111
  * @returns
107
112
  */
108
- getForwardY(): number;
109
- /**
110
- * @param pitch
111
- * @param roll
112
- * @param yaw
113
- * @param rotationOrder
114
- * @param p5
115
- */
116
- setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
117
- /**
118
- * @param p1
119
- * @param relationshipGroup
120
- */
121
- setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
113
+ getWorldPositionOfBone(boneIndex: number): Vector3;
122
114
  /**
123
- * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
124
- * BOOL p2: handles an additional special proofs flag, so it simply indicates whether it should be enabled or disabled, not sure what exactly it proofs the entity from though
115
+ * https://github.com/femga/rdr3_discoveries/tree/master/animations
125
116
  *
126
- * @param proofsBitset
127
- * @param specialFlag
128
- */
129
- setProofs(proofsBitset: number, specialFlag: boolean): void;
130
- /**
131
- * @returns
132
- */
133
- hasCollisionLoadedAroundEntity(): boolean;
134
- /**
135
- * @returns
136
- */
137
- getIsCarriablePelt(): any;
138
- /**
139
- * @param p1
117
+ * @param animName
118
+ * @param animDict
119
+ * @param p3
120
+ * @param loop
121
+ * @param stayInAnim
122
+ * @param p6
123
+ * @param delta
124
+ * @param bitset
140
125
  * @returns
141
126
  */
142
- getVelocity(p1: number): Vector3;
143
- /**
144
- * @param toggle
145
- */
146
- setCanAutoVaultOnEntity(toggle: boolean): void;
127
+ playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
147
128
  /**
148
- * Sets the loot table an entity will carry. Returns true if loot table has been successfully set. Returns false if entity is not a ped or object.
149
- * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
129
+ * Returns false if entity is not a ped or object.
150
130
  *
151
- * @param lootTable
152
- * @returns
153
- */
154
- scriptOverrideLootTablePermanent(lootTable: string | number): any;
155
- /**
156
- * @returns argStruct
131
+ * @returns lootTable
157
132
  */
158
- getScript(): [number, number];
133
+ getScriptOverrideLootTablePermanent(): [any, number];
159
134
  /**
160
- * @param actionHash
135
+ * @param animDict
136
+ * @param animName
137
+ * @param p3
161
138
  * @returns
162
139
  */
163
- hasAnimEventFired(actionHash: string | number): boolean;
164
- /**
165
- * @param p1
166
- */
167
- N_0xEF259AA1E097E0AD(p1: any): void;
140
+ hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
168
141
  /**
169
- * Getter for FREEZE_ENTITY_POSITION
170
- *
171
- * @returns
142
+ * @param bCanBeDamaged
143
+ * @param relGroup
172
144
  */
173
- isFrozen(): any;
145
+ setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
174
146
  /**
175
- * Returns the entity that is looting a ped but only while the looting is active
176
- *
177
147
  * @returns
178
148
  */
179
- getLootingPed(): Ped | null;
149
+ getUprightValue(): number;
180
150
  /**
181
- * @returns
151
+ * @param pos
152
+ * @param heading
153
+ * @param xAxis
154
+ * @param yAxis
155
+ * @param zAxis
182
156
  */
183
- isWaitingForWorldCollision(): boolean;
157
+ setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
184
158
  /**
185
- * Gets the X-component of the entity's forward vector.
159
+ * Returns zero if the entity is not a carriable
186
160
  *
187
161
  * @returns
188
162
  */
189
- getForwardX(): number;
190
- /**
191
- * @returns
192
- */
193
- isAPed(): boolean;
194
- /**
195
- * @returns
196
- */
197
- getPitch(): number;
198
- /**
199
- * @returns
200
- */
201
- isStatic(): boolean;
163
+ getCarryConfig(): number;
202
164
  /**
203
- * Returns the model hash from the entity
165
+ * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
204
166
  *
205
- * @returns
206
- */
207
- getModel(): number;
208
- /**
209
- * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
167
+ * @param tier
168
+ * @param p2
210
169
  */
211
- deleteEntity(): void;
170
+ setThreatTier(tier: number, p2: boolean): void;
212
171
  /**
213
- * @param team
214
- * @param playerPedToIgnore
215
- * @param flags
172
+ * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
173
+ *
216
174
  * @returns
217
175
  */
218
- getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
176
+ getHeading(): number;
219
177
  /**
220
178
  * Returns the LOD distance of an entity.
221
179
  *
@@ -337,114 +295,121 @@ export declare class Entity implements IHandle {
337
295
  */
338
296
  getNearestParticipantToEntity(): Player | null;
339
297
  /**
340
- * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
341
- *
342
- * @returns
298
+ * @param p1
343
299
  */
344
- getType(): number;
300
+ N_0xA48E4801DEBDF7E4(p1: boolean): void;
345
301
  /**
346
- * @returns
302
+ * @param toggle
303
+ * @param keepPhysics
347
304
  */
348
- isOwnedByPersistenceSystem(): any;
305
+ setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
349
306
  /**
350
- * @param animDict
351
- * @param animName
352
- * @param animType
307
+ * @param p1
308
+ */
309
+ N_0xCDB682BB47C02F0A(p1: string | number): void;
310
+ /**
311
+ * @param volume
312
+ * @param p2
313
+ * @param p3
353
314
  * @returns
354
315
  */
355
- isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
316
+ isInVolume(volume: number, p2: boolean, p3: number): boolean;
356
317
  /**
357
- * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
318
+ * @returns rightVector; forwardVector; upVector; position
358
319
  */
359
- setAsNoLongerNeeded(): void;
320
+ getMatrix(): [Vector3, Vector3, Vector3, Vector3];
321
+ /**
322
+ * Called if entity is in water and submerged level is larger than 1f. If CARRYING_FLAG_FORCE_ALLOW_WARP_TO_SAFE_GROUND_LOCATION is true, it gets disabled as well.
323
+ */
324
+ N_0x371D179701D9C082(): void;
360
325
  /**
326
+ * @param p1
361
327
  * @returns
362
328
  */
363
- hasBeenDamagedByAnyVehicle(): boolean;
329
+ getMaxHealth(p1: boolean): number;
364
330
  /**
365
331
  * @param animDict
366
332
  * @param animName
367
- * @param speedMultiplier
333
+ * @param time
368
334
  */
369
- setAnimSpeed(animDict: string | null, animName: string | null, speedMultiplier: number): void;
370
- unpinMapEntity(): void;
335
+ setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
371
336
  /**
372
- * Get how much of the entity is submerged. 1.0f is whole entity.
337
+ * Gets the current coordinates for a specified entity.
338
+ * `entity` = The entity to get the coordinates from.
339
+ * `alive` = Unused by the game, potentially used by debug builds in order to assert whether or not an entity was alive. If entity is a ped and it's in a vehicle or on a mount the coords of that entity are returned. Set 'realCoords' to true when you need the true ped coords.
373
340
  *
341
+ * @param alive
342
+ * @param realCoords
374
343
  * @returns
375
344
  */
376
- getSubmergedLevel(): number;
345
+ getCoords(alive?: boolean, realCoords?: boolean): Vector3;
377
346
  /**
378
347
  * @returns
379
348
  */
380
- isAttached(): boolean;
381
- /**
382
- * SET_ENTITY_A*
383
- *
384
- * @param p1
385
- */
386
- N_0xC0EDEF16D90661EE(p1: number): void;
349
+ isAnObject(): boolean;
387
350
  /**
388
- * @param looted
351
+ * @returns
389
352
  */
390
- setFullyLooted(looted: boolean): void;
353
+ isUpsidedown(): boolean;
391
354
  /**
355
+ * @param p1
392
356
  * @returns
393
357
  */
394
- isAttachedToAnyVehicle(): boolean;
358
+ doesBelongToThisScript(p1: boolean): boolean;
395
359
  /**
396
- * @param p1
360
+ * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
361
+ *
362
+ * @returns
397
363
  */
398
- N_0xA48E4801DEBDF7E4(p1: boolean): void;
364
+ getCarriableFromEntity(): number;
399
365
  /**
400
366
  * @param toggle
401
367
  * @param keepPhysics
402
368
  */
403
- setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
369
+ setCollision(toggle: boolean, keepPhysics: boolean): void;
404
370
  /**
405
371
  * @param p1
372
+ * @returns
406
373
  */
407
- N_0xCDB682BB47C02F0A(p1: string | number): void;
374
+ placeOnGroundProperly(p1: boolean): any;
408
375
  /**
409
- * @param volume
410
- * @param p2
411
- * @param p3
412
376
  * @returns
413
377
  */
414
- isInVolume(volume: number, p2: boolean, p3: number): boolean;
378
+ isInWater(): boolean;
415
379
  /**
416
- * @returns rightVector; forwardVector; upVector; position
380
+ * @returns Returns `true` if the entity exists
417
381
  */
418
- getMatrix(): [Vector3, Vector3, Vector3, Vector3];
382
+ doesExist(): boolean;
419
383
  /**
420
- * Called if entity is in water and submerged level is larger than 1f. If CARRYING_FLAG_FORCE_ALLOW_WARP_TO_SAFE_GROUND_LOCATION is true, it gets disabled as well.
384
+ * @returns
421
385
  */
422
- N_0x371D179701D9C082(): void;
386
+ getAlpha(): number;
423
387
  /**
424
- * @param p1
388
+ * This native only works on `Ped` and `Object` entity types
389
+ *
390
+ * @param flagId Refer to [enum: eCarryingFlags]
425
391
  * @returns
426
392
  */
427
- getMaxHealth(p1: boolean): number;
393
+ getCarryingFlag(flagId: eCarryingFlags): number;
428
394
  /**
429
- * @param animDict
430
- * @param animName
431
- * @param time
395
+ * @param p1
432
396
  */
433
- setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
397
+ forceAiAndAnimationUpdate(p1: boolean): void;
434
398
  /**
435
- * Gets the current coordinates for a specified entity.
436
- * `entity` = The entity to get the coordinates from.
437
- * `alive` = Unused by the game, potentially used by debug builds in order to assert whether or not an entity was alive. If entity is a ped and it's in a vehicle or on a mount the coords of that entity are returned. Set 'realCoords' to true when you need the true ped coords.
399
+ * Axis - Invert Axis Flags
438
400
  *
439
- * @param alive
440
- * @param realCoords
441
- * @returns
401
+ * @param pos
402
+ * @param xAxis
403
+ * @param yAxis
404
+ * @param zAxis
442
405
  */
443
- getCoords(alive: boolean, realCoords: boolean): Vector3;
406
+ setCoordsNoOffset(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
444
407
  /**
408
+ * Returns (CUR_HEALTH / MAX_HEALTH)
409
+ *
445
410
  * @returns
446
411
  */
447
- isAnObject(): boolean;
412
+ getHealthFloat(): number;
448
413
  /**
449
414
  * LOD distance can be 0 to 0xFFFF (higher values will result in 0xFFFF) as it is actually stored as a 16-bit value (aka uint16_t).
450
415
  *
@@ -592,85 +557,127 @@ export declare class Entity implements IHandle {
592
557
  */
593
558
  N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
594
559
  /**
595
- * @param pos1
596
- * @param pos2
597
- * @param p7
598
- * @param p8
599
- * @param p9
560
+ * @param playerPedToIgnore
561
+ * @param flags
600
562
  * @returns
601
563
  */
602
- isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
564
+ getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
603
565
  /**
604
- * Returns the coordinates of an entity-bone.
605
- * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
566
+ * Gets the Y-component of the entity's forward vector.
606
567
  *
607
- * @param boneIndex
608
568
  * @returns
609
569
  */
610
- getWorldPositionOfBone(boneIndex: number): Vector3;
570
+ getForwardY(): number;
611
571
  /**
612
- * https://github.com/femga/rdr3_discoveries/tree/master/animations
572
+ * @param pitch
573
+ * @param roll
574
+ * @param yaw
575
+ * @param rotationOrder
576
+ * @param p5
577
+ */
578
+ setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
579
+ /**
580
+ * @param p1
581
+ * @param relationshipGroup
582
+ */
583
+ setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
584
+ /**
585
+ * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
586
+ * BOOL p2: handles an additional special proofs flag, so it simply indicates whether it should be enabled or disabled, not sure what exactly it proofs the entity from though
613
587
  *
614
- * @param animName
615
- * @param animDict
616
- * @param p3
617
- * @param loop
618
- * @param stayInAnim
619
- * @param p6
620
- * @param delta
621
- * @param bitset
588
+ * @param proofsBitset
589
+ * @param specialFlag
590
+ */
591
+ setProofs(proofsBitset: number, specialFlag: boolean): void;
592
+ /**
622
593
  * @returns
623
594
  */
624
- playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
595
+ hasCollisionLoadedAroundEntity(): boolean;
625
596
  /**
626
- * Returns false if entity is not a ped or object.
627
- *
628
- * @returns lootTable
597
+ * @returns
629
598
  */
630
- getScriptOverrideLootTablePermanent(): [any, number];
599
+ getIsCarriablePelt(): any;
631
600
  /**
632
- * @param animDict
633
- * @param animName
634
- * @param p3
601
+ * @param p1
635
602
  * @returns
636
603
  */
637
- hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
604
+ getVelocity(p1: number): Vector3;
638
605
  /**
639
- * @param bCanBeDamaged
640
- * @param relGroup
606
+ * @param toggle
641
607
  */
642
- setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
608
+ setCanAutoVaultOnEntity(toggle: boolean): void;
643
609
  /**
610
+ * Sets the loot table an entity will carry. Returns true if loot table has been successfully set. Returns false if entity is not a ped or object.
611
+ * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
612
+ *
613
+ * @param lootTable
644
614
  * @returns
645
615
  */
646
- getUprightValue(): number;
616
+ scriptOverrideLootTablePermanent(lootTable: string | number): any;
647
617
  /**
648
- * @param pos
649
- * @param heading
650
- * @param xAxis
651
- * @param yAxis
652
- * @param zAxis
618
+ * @returns argStruct
653
619
  */
654
- setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
620
+ getScript(): [number, number];
655
621
  /**
656
- * Returns zero if the entity is not a carriable
622
+ * @param actionHash
623
+ * @returns
624
+ */
625
+ hasAnimEventFired(actionHash: string | number): boolean;
626
+ /**
627
+ * @param p1
628
+ */
629
+ N_0xEF259AA1E097E0AD(p1: any): void;
630
+ /**
631
+ * Getter for FREEZE_ENTITY_POSITION
657
632
  *
658
633
  * @returns
659
634
  */
660
- getCarryConfig(): number;
635
+ isFrozen(): any;
661
636
  /**
662
- * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
637
+ * Returns the entity that is looting a ped but only while the looting is active
663
638
  *
664
- * @param tier
665
- * @param p2
639
+ * @returns
666
640
  */
667
- setThreatTier(tier: number, p2: boolean): void;
641
+ getLootingPed(): Ped | null;
668
642
  /**
669
- * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
643
+ * @returns
644
+ */
645
+ isWaitingForWorldCollision(): boolean;
646
+ /**
647
+ * Gets the X-component of the entity's forward vector.
670
648
  *
671
649
  * @returns
672
650
  */
673
- getHeading(): number;
651
+ getForwardX(): number;
652
+ /**
653
+ * @returns
654
+ */
655
+ isAPed(): boolean;
656
+ /**
657
+ * @returns
658
+ */
659
+ getPitch(): number;
660
+ /**
661
+ * @returns
662
+ */
663
+ isStatic(): boolean;
664
+ /**
665
+ * Returns the model hash from the entity
666
+ *
667
+ * @returns
668
+ */
669
+ getModel(): number;
670
+ /**
671
+ * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
672
+ */
673
+ deleteEntity(): void;
674
+ /**
675
+ * @param team
676
+ * @param playerPedToIgnore
677
+ * @param flags
678
+ * @returns
679
+ */
680
+ getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
674
681
  /**
675
682
  * Seems to return true if entity is burned / scorched
676
683
  * *GET_ENTITY**
@@ -883,126 +890,119 @@ export declare class Entity implements IHandle {
883
890
  */
884
891
  getThreatTier(): number;
885
892
  /**
886
- * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
893
+ * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
887
894
  *
888
- * @param entity2
889
- * @param p2
890
- * @param p3
891
895
  * @returns
892
896
  */
893
- N_0x3EC28DA1FFAC9DDD(entity2: Entity, p2: any, p3: any): boolean;
894
- /**
895
- * Must be called from a background script, otherwise it will do nothing.
896
- */
897
- delete2(): void;
897
+ getType(): number;
898
898
  /**
899
- * @param p1
900
899
  * @returns
901
900
  */
902
- isInAir(p1: any): boolean;
901
+ isOwnedByPersistenceSystem(): any;
903
902
  /**
903
+ * @param animDict
904
+ * @param animName
905
+ * @param animType
904
906
  * @returns
905
907
  */
906
- isAMissionEntity(): boolean;
908
+ isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
907
909
  /**
908
- * @returns
910
+ * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
909
911
  */
910
- isAttachedToAnyPed(): boolean;
912
+ setAsNoLongerNeeded(): void;
911
913
  /**
912
- * @param to
913
914
  * @returns
914
915
  */
915
- isAttachedToEntity(to: Entity): boolean;
916
+ hasBeenDamagedByAnyVehicle(): boolean;
916
917
  /**
917
- * @returns
918
+ * @param animDict
919
+ * @param animName
920
+ * @param speedMultiplier
918
921
  */
919
- hasBeenDamagedByAnyObject(): boolean;
922
+ setAnimSpeed(animDict: string | null, animName: string | null, speedMultiplier: number): void;
923
+ unpinMapEntity(): void;
920
924
  /**
921
- * @param rotationOrder
925
+ * Get how much of the entity is submerged. 1.0f is whole entity.
926
+ *
922
927
  * @returns
923
928
  */
924
- getRotation(rotationOrder: number): Vector3;
929
+ getSubmergedLevel(): number;
925
930
  /**
926
- * @param toggle
931
+ * @returns
927
932
  */
928
- setMotionBlur(toggle: boolean): void;
929
- resetAlpha(): void;
933
+ isAttached(): boolean;
930
934
  /**
931
- * Checks if entity is within x/y/zSize distance of x/y/z. Last three are unknown ints, almost always p7 = 0, p8 = 1, p9 = 0
935
+ * SET_ENTITY_A*
932
936
  *
933
- * @param pos
934
- * @param xSize
935
- * @param ySize
936
- * @param zSize
937
- * @param p7
938
- * @param p8
939
- * @param p9
940
- * @returns
937
+ * @param p1
941
938
  */
942
- isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
939
+ N_0xC0EDEF16D90661EE(p1: number): void;
943
940
  /**
944
- * @returns
941
+ * @param looted
945
942
  */
946
- isUpsidedown(): boolean;
943
+ setFullyLooted(looted: boolean): void;
947
944
  /**
948
- * @param p1
949
945
  * @returns
950
946
  */
951
- doesBelongToThisScript(p1: boolean): boolean;
947
+ isAttachedToAnyVehicle(): boolean;
952
948
  /**
953
- * Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
949
+ * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
954
950
  *
951
+ * @param entity2
952
+ * @param p2
953
+ * @param p3
955
954
  * @returns
956
955
  */
957
- getCarriableFromEntity(): number;
956
+ N_0x3EC28DA1FFAC9DDD(entity2: Entity, p2: any, p3: any): boolean;
958
957
  /**
959
- * @param toggle
960
- * @param keepPhysics
958
+ * Must be called from a background script, otherwise it will do nothing.
961
959
  */
962
- setCollision(toggle: boolean, keepPhysics: boolean): void;
960
+ delete2(): void;
963
961
  /**
964
962
  * @param p1
965
963
  * @returns
966
964
  */
967
- placeOnGroundProperly(p1: boolean): any;
965
+ isInAir(p1: any): boolean;
968
966
  /**
969
967
  * @returns
970
968
  */
971
- isInWater(): boolean;
969
+ isAMissionEntity(): boolean;
972
970
  /**
973
- * @returns Returns `true` if the entity exists
971
+ * @returns
974
972
  */
975
- doesExist(): boolean;
973
+ isAttachedToAnyPed(): boolean;
976
974
  /**
975
+ * @param to
977
976
  * @returns
978
977
  */
979
- getAlpha(): number;
978
+ isAttachedToEntity(to: Entity): boolean;
980
979
  /**
981
- * This native only works on `Ped` and `Object` entity types
982
- *
983
- * @param flagId Refer to [enum: eCarryingFlags]
984
980
  * @returns
985
981
  */
986
- getCarryingFlag(flagId: eCarryingFlags): number;
982
+ hasBeenDamagedByAnyObject(): boolean;
987
983
  /**
988
- * @param p1
984
+ * @param rotationOrder
985
+ * @returns
989
986
  */
990
- forceAiAndAnimationUpdate(p1: boolean): void;
987
+ getRotation(rotationOrder: number): Vector3;
991
988
  /**
992
- * Axis - Invert Axis Flags
993
- *
994
- * @param pos
995
- * @param xAxis
996
- * @param yAxis
997
- * @param zAxis
989
+ * @param toggle
998
990
  */
999
- setCoordsNoOffset(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
991
+ setMotionBlur(toggle: boolean): void;
992
+ resetAlpha(): void;
1000
993
  /**
1001
- * Returns (CUR_HEALTH / MAX_HEALTH)
994
+ * Checks if entity is within x/y/zSize distance of x/y/z. Last three are unknown ints, almost always p7 = 0, p8 = 1, p9 = 0
1002
995
  *
996
+ * @param pos
997
+ * @param xSize
998
+ * @param ySize
999
+ * @param zSize
1000
+ * @param p7
1001
+ * @param p8
1002
+ * @param p9
1003
1003
  * @returns
1004
1004
  */
1005
- getHealthFloat(): number;
1005
+ isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
1006
1006
  /**
1007
1007
  * @param entity2
1008
1008
  * @param p2