@nativewrappers/redm-codegen 0.0.5 → 0.0.6

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 (213) hide show
  1. package/dist/classes/AnimScene.d.ts +126 -126
  2. package/dist/classes/AnimScene.d.ts.map +1 -1
  3. package/dist/classes/AnimScene.js +184 -184
  4. package/dist/classes/BaseModel.d.ts +17 -17
  5. package/dist/classes/BaseModel.d.ts.map +1 -1
  6. package/dist/classes/BaseModel.js +25 -25
  7. package/dist/classes/BaseTask.d.ts +12 -12
  8. package/dist/classes/BaseTask.d.ts.map +1 -1
  9. package/dist/classes/BaseTask.js +14 -14
  10. package/dist/classes/Cam.d.ts +94 -94
  11. package/dist/classes/Cam.d.ts.map +1 -1
  12. package/dist/classes/Cam.js +126 -126
  13. package/dist/classes/Entity.d.ts +471 -471
  14. package/dist/classes/Entity.d.ts.map +1 -1
  15. package/dist/classes/Entity.js +672 -672
  16. package/dist/classes/PedTask.d.ts +155 -155
  17. package/dist/classes/PedTask.d.ts.map +1 -1
  18. package/dist/classes/PedTask.js +204 -204
  19. package/dist/classes/PersChar.d.ts +9 -9
  20. package/dist/classes/PersChar.d.ts.map +1 -1
  21. package/dist/classes/PersChar.js +21 -21
  22. package/dist/classes/Pickup.d.ts +5 -5
  23. package/dist/classes/Pickup.d.ts.map +1 -1
  24. package/dist/classes/Pickup.js +9 -9
  25. package/dist/classes/Player.d.ts +687 -687
  26. package/dist/classes/Player.d.ts.map +1 -1
  27. package/dist/classes/Player.js +1013 -1013
  28. package/dist/classes/Prop.d.ts +87 -87
  29. package/dist/classes/Prop.d.ts.map +1 -1
  30. package/dist/classes/Prop.js +121 -121
  31. package/dist/classes/PropSet.d.ts +4 -4
  32. package/dist/classes/PropSet.d.ts.map +1 -1
  33. package/dist/classes/PropSet.js +6 -6
  34. package/dist/classes/VehicleTask.d.ts +17 -17
  35. package/dist/classes/VehicleTask.d.ts.map +1 -1
  36. package/dist/classes/VehicleTask.js +21 -21
  37. package/dist/classes/Weapon.d.ts +306 -306
  38. package/dist/classes/Weapon.d.ts.map +1 -1
  39. package/dist/classes/Weapon.js +411 -411
  40. package/dist/namespaces/Animscene.d.ts +59 -59
  41. package/dist/namespaces/Animscene.d.ts.map +1 -1
  42. package/dist/namespaces/Animscene.js +77 -77
  43. package/dist/namespaces/Audio.d.ts +569 -569
  44. package/dist/namespaces/Audio.d.ts.map +1 -1
  45. package/dist/namespaces/Audio.js +728 -728
  46. package/dist/namespaces/Bounty.d.ts +70 -70
  47. package/dist/namespaces/Bounty.d.ts.map +1 -1
  48. package/dist/namespaces/Bounty.js +115 -115
  49. package/dist/namespaces/Brain.d.ts +15 -15
  50. package/dist/namespaces/Brain.d.ts.map +1 -1
  51. package/dist/namespaces/Brain.js +20 -20
  52. package/dist/namespaces/CamStatics.d.ts +399 -399
  53. package/dist/namespaces/CamStatics.d.ts.map +1 -1
  54. package/dist/namespaces/CamStatics.js +574 -574
  55. package/dist/namespaces/Clock.d.ts +51 -51
  56. package/dist/namespaces/Clock.d.ts.map +1 -1
  57. package/dist/namespaces/Clock.js +73 -73
  58. package/dist/namespaces/Collection.d.ts +76 -76
  59. package/dist/namespaces/Collection.d.ts.map +1 -1
  60. package/dist/namespaces/Collection.js +108 -108
  61. package/dist/namespaces/Companion.d.ts +22 -22
  62. package/dist/namespaces/Companion.d.ts.map +1 -1
  63. package/dist/namespaces/Companion.js +30 -30
  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/Crew.d.ts +9 -9
  71. package/dist/namespaces/Crew.d.ts.map +1 -1
  72. package/dist/namespaces/Crew.js +14 -14
  73. package/dist/namespaces/Databinding.d.ts +177 -177
  74. package/dist/namespaces/Databinding.d.ts.map +1 -1
  75. package/dist/namespaces/Databinding.js +271 -271
  76. package/dist/namespaces/Dlc.d.ts +5 -5
  77. package/dist/namespaces/Dlc.d.ts.map +1 -1
  78. package/dist/namespaces/Dlc.js +9 -9
  79. package/dist/namespaces/EntityStatics.d.ts +193 -193
  80. package/dist/namespaces/EntityStatics.d.ts.map +1 -1
  81. package/dist/namespaces/EntityStatics.js +263 -263
  82. package/dist/namespaces/Fire.d.ts +7 -7
  83. package/dist/namespaces/Fire.d.ts.map +1 -1
  84. package/dist/namespaces/Fire.js +9 -9
  85. package/dist/namespaces/Graphics.d.ts +820 -820
  86. package/dist/namespaces/Graphics.d.ts.map +1 -1
  87. package/dist/namespaces/Graphics.js +1118 -1118
  88. package/dist/namespaces/Hud.d.ts +494 -494
  89. package/dist/namespaces/Hud.d.ts.map +1 -1
  90. package/dist/namespaces/Hud.js +789 -789
  91. package/dist/namespaces/Inventory.d.ts +180 -180
  92. package/dist/namespaces/Inventory.d.ts.map +1 -1
  93. package/dist/namespaces/Inventory.js +239 -239
  94. package/dist/namespaces/Itemdatabase.d.ts +78 -78
  95. package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
  96. package/dist/namespaces/Itemdatabase.js +106 -106
  97. package/dist/namespaces/Map.d.ts +156 -156
  98. package/dist/namespaces/Map.d.ts.map +1 -1
  99. package/dist/namespaces/Map.js +207 -207
  100. package/dist/namespaces/Minigame.d.ts +78 -78
  101. package/dist/namespaces/Minigame.d.ts.map +1 -1
  102. package/dist/namespaces/Minigame.js +116 -116
  103. package/dist/namespaces/Missiondata.d.ts +15 -15
  104. package/dist/namespaces/Missiondata.d.ts.map +1 -1
  105. package/dist/namespaces/Missiondata.js +23 -23
  106. package/dist/namespaces/Network.d.ts +636 -636
  107. package/dist/namespaces/Network.d.ts.map +1 -1
  108. package/dist/namespaces/Network.js +915 -915
  109. package/dist/namespaces/Object.d.ts +121 -121
  110. package/dist/namespaces/Object.d.ts.map +1 -1
  111. package/dist/namespaces/Object.js +162 -162
  112. package/dist/namespaces/Pad.d.ts +94 -94
  113. package/dist/namespaces/Pad.d.ts.map +1 -1
  114. package/dist/namespaces/Pad.js +127 -127
  115. package/dist/namespaces/Perschar.d.ts +44 -44
  116. package/dist/namespaces/Perschar.d.ts.map +1 -1
  117. package/dist/namespaces/Perschar.js +68 -68
  118. package/dist/namespaces/Physics.d.ts +158 -158
  119. package/dist/namespaces/Physics.d.ts.map +1 -1
  120. package/dist/namespaces/Physics.js +207 -207
  121. package/dist/namespaces/PlayerStatics.d.ts +127 -127
  122. package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
  123. package/dist/namespaces/PlayerStatics.js +177 -177
  124. package/dist/namespaces/Population.d.ts +75 -75
  125. package/dist/namespaces/Population.d.ts.map +1 -1
  126. package/dist/namespaces/Population.js +101 -101
  127. package/dist/namespaces/Posse.d.ts +38 -38
  128. package/dist/namespaces/Posse.d.ts.map +1 -1
  129. package/dist/namespaces/Posse.js +62 -62
  130. package/dist/namespaces/Propset.d.ts +30 -30
  131. package/dist/namespaces/Propset.d.ts.map +1 -1
  132. package/dist/namespaces/Propset.js +38 -38
  133. package/dist/namespaces/Shapetest.d.ts +11 -11
  134. package/dist/namespaces/Shapetest.d.ts.map +1 -1
  135. package/dist/namespaces/Shapetest.js +13 -13
  136. package/dist/namespaces/Stats.d.ts +88 -88
  137. package/dist/namespaces/Stats.d.ts.map +1 -1
  138. package/dist/namespaces/Stats.js +123 -123
  139. package/dist/namespaces/Streaming.d.ts +58 -58
  140. package/dist/namespaces/Streaming.d.ts.map +1 -1
  141. package/dist/namespaces/Streaming.js +92 -92
  142. package/dist/namespaces/Task.d.ts +62 -62
  143. package/dist/namespaces/Task.d.ts.map +1 -1
  144. package/dist/namespaces/Task.js +90 -90
  145. package/dist/namespaces/Telemetry.d.ts +172 -172
  146. package/dist/namespaces/Telemetry.d.ts.map +1 -1
  147. package/dist/namespaces/Telemetry.js +240 -240
  148. package/dist/namespaces/Uifeed.d.ts +15 -15
  149. package/dist/namespaces/Uifeed.d.ts.map +1 -1
  150. package/dist/namespaces/Uifeed.js +24 -24
  151. package/dist/namespaces/Voice.d.ts +38 -38
  152. package/dist/namespaces/Voice.d.ts.map +1 -1
  153. package/dist/namespaces/Voice.js +56 -56
  154. package/dist/namespaces/Water.d.ts +27 -27
  155. package/dist/namespaces/Water.d.ts.map +1 -1
  156. package/dist/namespaces/Water.js +41 -41
  157. package/dist/namespaces/WeaponStatics.d.ts +250 -250
  158. package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
  159. package/dist/namespaces/WeaponStatics.js +346 -346
  160. package/package.json +1 -1
  161. package/src/classes/AnimScene.ts +199 -199
  162. package/src/classes/BaseModel.ts +29 -29
  163. package/src/classes/BaseTask.ts +15 -15
  164. package/src/classes/Cam.ts +135 -135
  165. package/src/classes/Entity.ts +687 -687
  166. package/src/classes/PedTask.ts +223 -223
  167. package/src/classes/PersChar.ts +24 -24
  168. package/src/classes/Pickup.ts +10 -10
  169. package/src/classes/Player.ts +1024 -1024
  170. package/src/classes/Prop.ts +136 -136
  171. package/src/classes/PropSet.ts +7 -7
  172. package/src/classes/VehicleTask.ts +23 -23
  173. package/src/classes/Weapon.ts +429 -429
  174. package/src/namespaces/Animscene.ts +86 -86
  175. package/src/namespaces/Audio.ts +804 -804
  176. package/src/namespaces/Bounty.ts +131 -131
  177. package/src/namespaces/Brain.ts +22 -22
  178. package/src/namespaces/CamStatics.ts +599 -599
  179. package/src/namespaces/Clock.ts +82 -82
  180. package/src/namespaces/Collection.ts +109 -109
  181. package/src/namespaces/Companion.ts +34 -34
  182. package/src/namespaces/Compendium.ts +59 -59
  183. package/src/namespaces/Crashlog.ts +16 -16
  184. package/src/namespaces/Crew.ts +16 -16
  185. package/src/namespaces/Databinding.ts +286 -286
  186. package/src/namespaces/Dlc.ts +9 -9
  187. package/src/namespaces/EntityStatics.ts +279 -279
  188. package/src/namespaces/Fire.ts +10 -10
  189. package/src/namespaces/Graphics.ts +1196 -1196
  190. package/src/namespaces/Hud.ts +799 -799
  191. package/src/namespaces/Inventory.ts +245 -245
  192. package/src/namespaces/Itemdatabase.ts +118 -118
  193. package/src/namespaces/Map.ts +215 -215
  194. package/src/namespaces/Minigame.ts +132 -132
  195. package/src/namespaces/Missiondata.ts +27 -27
  196. package/src/namespaces/Network.ts +951 -951
  197. package/src/namespaces/Object.ts +171 -171
  198. package/src/namespaces/Pad.ts +127 -127
  199. package/src/namespaces/Perschar.ts +72 -72
  200. package/src/namespaces/Physics.ts +231 -231
  201. package/src/namespaces/PlayerStatics.ts +202 -202
  202. package/src/namespaces/Population.ts +114 -114
  203. package/src/namespaces/Posse.ts +62 -62
  204. package/src/namespaces/Propset.ts +42 -42
  205. package/src/namespaces/Shapetest.ts +14 -14
  206. package/src/namespaces/Stats.ts +139 -139
  207. package/src/namespaces/Streaming.ts +104 -104
  208. package/src/namespaces/Task.ts +100 -100
  209. package/src/namespaces/Telemetry.ts +265 -265
  210. package/src/namespaces/Uifeed.ts +27 -27
  211. package/src/namespaces/Voice.ts +65 -65
  212. package/src/namespaces/Water.ts +47 -47
  213. package/src/namespaces/WeaponStatics.ts +365 -365
@@ -23,225 +23,184 @@ export declare class Entity implements IHandle {
23
23
  */
24
24
  get ForwardVectorYx(): Vector3;
25
25
  /**
26
- * @param pos
27
- * @param xAxis
28
- * @param yAxis
29
- * @param zAxis
30
- * @param clearArea
26
+ * @param targetEntity
27
+ * @returns
31
28
  */
32
- setCoords(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean, clearArea: boolean): void;
29
+ isTouchingEntity(targetEntity: Entity): boolean;
30
+ deleteCarriable(): void;
33
31
  /**
34
- * @param boneName
32
+ * Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
33
+ *
34
+ * @param animDict
35
+ * @param animName
35
36
  * @returns
36
37
  */
37
- getBoneIndexByName(boneName: string | null): number;
38
+ getAnimCurrentTime(animDict: string | null, animName: string | null): number;
38
39
  /**
39
- * @param pause
40
+ * @param entity2
41
+ * @param thisFrameOnly
40
42
  */
41
- pauseTracking(pause: boolean): void;
43
+ setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
42
44
  /**
43
- * @param toggle
45
+ * Result is in meters per second (m/s)
46
+ *
47
+ * @returns
44
48
  */
45
- set LoadCollisionFlag(toggle: boolean);
49
+ get Speed(): number;
46
50
  /**
47
- * Changes type and quality of skins
48
- * type hashes: https://pastebin.com/C1WvQjCy
49
- *
50
- * @param type
51
+ * @param bOnlyDamagedWhenRunningScript
51
52
  */
52
- set CarcassType(type: string | number);
53
+ set CanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean);
53
54
  /**
54
- * @param toggle
55
+ * @returns
55
56
  */
56
- set HasGravity(toggle: boolean);
57
+ get IsTrackedVisible(): any;
58
+ /**
59
+ * @param p1
60
+ * @param collision
61
+ */
62
+ detachEntity(p1: boolean, collision: boolean): void;
57
63
  /**
58
- * @param relative
59
64
  * @returns
60
65
  */
61
- getSpeedVector(relative: boolean): Vector3;
66
+ get IsVisibleToScript(): boolean;
62
67
  /**
63
68
  * @param entity2
64
- * @param p2
65
- * @param p3
69
+ * @param traceType
66
70
  * @returns
67
71
  */
68
- hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
72
+ hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
73
+ /**
74
+ * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
75
+ * *GET_ENTITY**
76
+ *
77
+ * @param animDict
78
+ * @param animClip
79
+ * @returns
80
+ */
81
+ N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
69
82
  /**
83
+ * @param playerPedToIgnore
84
+ * @param flags
70
85
  * @returns
71
86
  */
72
- get IsFullyLooted(): any;
87
+ getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
73
88
  /**
89
+ * Gets the Y-component of the entity's forward vector.
90
+ *
74
91
  * @returns
75
92
  */
76
- get IsOccluded(): boolean;
93
+ get ForwardY(): number;
77
94
  /**
78
- * @param toggle
95
+ * @param pitch
96
+ * @param roll
97
+ * @param yaw
98
+ * @param rotationOrder
99
+ * @param p5
79
100
  */
80
- set CanBeDamaged(toggle: boolean);
101
+ setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
81
102
  /**
82
- * @param forceFlags
83
- * @param pos
84
- * @param offset
85
- * @param boneIndex
86
- * @param isDirectionRel
87
- * @param ignoreUpVec
88
- * @param isForceRel
89
- * @param p12
90
- * @param p13
103
+ * @param p1
104
+ * @param relationshipGroup
91
105
  */
92
- applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
106
+ setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
93
107
  /**
94
- * @returns
108
+ * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
109
+ * 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
110
+ *
111
+ * @param proofsBitset
112
+ * @param specialFlag
95
113
  */
96
- get IsDead(): boolean;
114
+ setProofs(proofsBitset: number, specialFlag: boolean): void;
97
115
  /**
98
- * @param pos1
99
- * @param pos2
100
- * @param p7
101
- * @param p8
102
- * @param p9
103
116
  * @returns
104
117
  */
105
- isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
118
+ hasCollisionLoadedAroundEntity(): boolean;
106
119
  /**
107
- * Returns the coordinates of an entity-bone.
108
- * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
109
- *
110
- * @param boneIndex
111
120
  * @returns
112
121
  */
113
- getWorldPositionOfBone(boneIndex: number): Vector3;
122
+ get IsCarriablePelt(): any;
114
123
  /**
115
- * https://github.com/femga/rdr3_discoveries/tree/master/animations
116
- *
117
- * @param animName
118
- * @param animDict
119
- * @param p3
120
- * @param loop
121
- * @param stayInAnim
122
- * @param p6
123
- * @param delta
124
- * @param bitset
124
+ * @param p1
125
125
  * @returns
126
126
  */
127
- playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
127
+ getVelocity(p1: number): Vector3;
128
128
  /**
129
- * Returns false if entity is not a ped or object.
130
- *
131
- * @returns lootTable
129
+ * @param toggle
132
130
  */
133
- get ScriptOverrideLootTablePermanent(): [any, number];
131
+ set CanAutoVaultOnEntity(toggle: boolean);
134
132
  /**
135
- * @param animDict
136
- * @param animName
137
- * @param p3
133
+ * 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.
134
+ * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
135
+ *
136
+ * @param lootTable
138
137
  * @returns
139
138
  */
140
- hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
139
+ scriptOverrideLootTablePermanent(lootTable: string | number): any;
141
140
  /**
142
- * @param bCanBeDamaged
143
- * @param relGroup
141
+ * @returns argStruct
144
142
  */
145
- setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
143
+ get Script(): [number, number];
146
144
  /**
145
+ * @param actionHash
147
146
  * @returns
148
147
  */
149
- get UprightValue(): number;
148
+ hasAnimEventFired(actionHash: string | number): boolean;
150
149
  /**
151
- * @param pos
152
- * @param heading
153
- * @param xAxis
154
- * @param yAxis
155
- * @param zAxis
150
+ * @param p1
156
151
  */
157
- setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
152
+ N_0xEF259AA1E097E0AD(p1: any): void;
158
153
  /**
159
- * Returns zero if the entity is not a carriable
154
+ * Getter for FREEZE_ENTITY_POSITION
160
155
  *
161
156
  * @returns
162
157
  */
163
- get CarryConfig(): number;
158
+ get IsFrozen(): any;
164
159
  /**
165
- * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
160
+ * Returns the entity that is looting a ped but only while the looting is active
166
161
  *
167
- * @param tier
168
- * @param p2
162
+ * @returns
169
163
  */
170
- setThreatTier(tier: number, p2: boolean): void;
164
+ get LootingPed(): Ped | null;
171
165
  /**
172
- * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
173
- *
174
166
  * @returns
175
167
  */
176
- get Heading(): number;
168
+ get IsWaitingForWorldCollision(): boolean;
177
169
  /**
178
- * Returns the LOD distance of an entity.
170
+ * Gets the X-component of the entity's forward vector.
179
171
  *
180
172
  * @returns
181
173
  */
182
- get LodDist(): number;
174
+ get ForwardX(): number;
183
175
  /**
184
176
  * @returns
185
177
  */
186
- doesHaveDrawable(): boolean;
187
- /**
188
- * @param xyzw
189
- */
190
- set Quaternion(xyzw: Vector4);
178
+ get IsAPed(): boolean;
191
179
  /**
192
180
  * @returns
193
181
  */
194
- get IsAttachedToAnyObject(): boolean;
182
+ get Pitch(): number;
195
183
  /**
196
- * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
197
- *
198
- * @param toggle
184
+ * @returns
199
185
  */
200
- set Invincible(toggle: boolean);
186
+ get IsStatic(): boolean;
201
187
  /**
202
- * Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type.
203
- * https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
204
- * collision - controls collision between the two entities (FALSE disables collision).
205
- * isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
206
- * vertexIndex - position of vertex
207
- * fixedRot - if false it ignores entity vector
188
+ * Returns the model hash from the entity
208
189
  *
209
- * @param entity2
210
- * @param boneIndex
211
- * @param pos
212
- * @param rot
213
- * @param p9
214
- * @param useSoftPinning
215
- * @param collision
216
- * @param isPed
217
- * @param vertexIndex
218
- * @param fixedRot
219
- * @param p15
220
- * @param p16
221
- */
222
- attachToEntity(entity2: Entity, boneIndex: number, pos: Vector3, rot: Vector3, p9: boolean, useSoftPinning: boolean, collision: boolean, isPed: boolean, vertexIndex: number, fixedRot: boolean, p15: boolean, p16: boolean): void;
223
- /**
224
190
  * @returns
225
191
  */
226
- get IsAnimal(): any;
192
+ get Model(): number;
227
193
  /**
228
- * p6/relative - makes the xyz force not relative to world coords, but to something else
229
- * p7/highForce - setting false will make the force really low
230
- *
231
- * @param forceType
232
- * @param pos
233
- * @param component
234
- * @param isDirectionRel
235
- * @param isForceRel
236
- * @param p8
194
+ * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
237
195
  */
238
- applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
196
+ deleteEntity(): void;
239
197
  /**
240
- * Old name: _GET_ENTITY_CAN_BE_DAMAGED
241
- *
198
+ * @param team
199
+ * @param playerPedToIgnore
200
+ * @param flags
242
201
  * @returns
243
202
  */
244
- get CanBeDamaged(): any;
203
+ getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
245
204
  /**
246
205
  * @param p1
247
206
  */
@@ -295,61 +254,146 @@ export declare class Entity implements IHandle {
295
254
  */
296
255
  get NearestParticipantToEntity(): Player | null;
297
256
  /**
298
- * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
257
+ * enum eCarriableState
258
+ * {
259
+ * CARRIABLE_STATE_NONE,
260
+ * CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
261
+ * CARRIABLE_STATE_CARRIABLE_INTRO,
262
+ * CARRIABLE_STATE_CARRIABLE,
263
+ * CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
264
+ * CARRIABLE_STATE_CARRIED_BY_HUMAN,
265
+ * CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
266
+ * CARRIABLE_STATE_CARRIED_BY_MOUNT,
267
+ * CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
268
+ * CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
269
+ * CARRIABLE_STATE_BEING_CUT_FREE,
270
+ * CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
271
+ * CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
272
+ * };
299
273
  *
300
274
  * @returns
301
275
  */
302
- get Type(): number;
276
+ get CarriableState(): number;
303
277
  /**
304
- * @returns
278
+ * @param value
305
279
  */
306
- get IsOwnedByPersistenceSystem(): any;
280
+ set MaxHealth(value: number);
307
281
  /**
308
- * @param animDict
309
- * @param animName
310
- * @param animType
282
+ * Params: p1 (probably animType) = 1, 0
283
+ *
284
+ * @param p1
311
285
  * @returns
312
286
  */
313
- isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
287
+ isPlayingAnyAnim(p1: number): boolean;
314
288
  /**
315
- * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
289
+ * @param enabled
316
290
  */
317
- setAsNoLongerNeeded(): void;
291
+ set LightsEnabled(enabled: boolean);
292
+ /**
293
+ * Offset values are relative to the entity. x = left/right
294
+ * y = forward/backward
295
+ * z = up/down
296
+ *
297
+ * @param offset
298
+ * @returns
299
+ */
300
+ getOffsetFromInWorldCoords(offset: Vector3): Vector3;
318
301
  /**
302
+ * Checks if entity1 is within the box defined by x/y/zSize of entity2. Last three parameters are almost always p5 = 0, p6 = 1, p7 = 0
303
+ *
304
+ * @param entity2
305
+ * @param xSize
306
+ * @param ySize
307
+ * @param zSize
308
+ * @param p5
309
+ * @param p6
310
+ * @param p7
319
311
  * @returns
320
312
  */
321
- hasBeenDamagedByAnyVehicle(): boolean;
313
+ isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
322
314
  /**
323
- * @param animDict
324
- * @param animName
325
- * @param speedMultiplier
315
+ * @param toggle
326
316
  */
327
- setAnimSpeed(animDict: string | null, animName: string | null, speedMultiplier: number): void;
328
- unpinMapEntity(): void;
317
+ set Visible(toggle: boolean);
329
318
  /**
330
- * Get how much of the entity is submerged. 1.0f is whole entity.
319
+ * Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
331
320
  *
332
- * @returns
321
+ * @param toggle
333
322
  */
334
- get SubmergedLevel(): number;
323
+ set ShouldFreezeWaitingOnCollision(toggle: boolean);
335
324
  /**
325
+ * Note: this native was removed in 1232 but added back in 1311
326
+ * Old name: _GET_ENTITY_PROOFS
327
+ *
336
328
  * @returns
337
329
  */
338
- get IsAttached(): boolean;
330
+ get Proofs(): number;
339
331
  /**
340
- * SET_ENTITY_A*
332
+ * skin - everything alpha except skin
333
+ * Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
341
334
  *
335
+ * @param alphaLevel
336
+ * @param skin
337
+ */
338
+ setAlpha(alphaLevel: number, skin: boolean): void;
339
+ /**
340
+ * @returns
341
+ */
342
+ get ThreatTier(): number;
343
+ /**
342
344
  * @param p1
343
345
  */
344
- N_0xC0EDEF16D90661EE(p1: number): void;
346
+ N_0xA48E4801DEBDF7E4(p1: boolean): void;
345
347
  /**
346
- * @param looted
348
+ * @param toggle
349
+ * @param keepPhysics
347
350
  */
348
- set FullyLooted(looted: boolean);
351
+ setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
349
352
  /**
353
+ * @param p1
354
+ */
355
+ N_0xCDB682BB47C02F0A(p1: string | number): void;
356
+ /**
357
+ * @param volume
358
+ * @param p2
359
+ * @param p3
350
360
  * @returns
351
361
  */
352
- get IsAttachedToAnyVehicle(): boolean;
362
+ isInVolume(volume: number, p2: boolean, p3: number): boolean;
363
+ /**
364
+ * @returns rightVector; forwardVector; upVector; position
365
+ */
366
+ get Matrix(): [Vector3, Vector3, Vector3, Vector3];
367
+ /**
368
+ * 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.
369
+ */
370
+ N_0x371D179701D9C082(): void;
371
+ /**
372
+ * @param p1
373
+ * @returns
374
+ */
375
+ getMaxHealth(p1: boolean): number;
376
+ /**
377
+ * @param animDict
378
+ * @param animName
379
+ * @param time
380
+ */
381
+ setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
382
+ /**
383
+ * Gets the current coordinates for a specified entity.
384
+ * `entity` = The entity to get the coordinates from.
385
+ * `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.
386
+ *
387
+ * @param alive
388
+ * @param realCoords
389
+ * @returns
390
+ */
391
+ getCoords(alive?: boolean, realCoords?: boolean): Vector3;
392
+ get Coords(): Vector3;
393
+ /**
394
+ * @returns
395
+ */
396
+ get IsAnObject(): boolean;
353
397
  /**
354
398
  * Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
355
399
  *
@@ -375,39 +419,98 @@ export declare class Entity implements IHandle {
375
419
  /**
376
420
  * @returns
377
421
  */
378
- get IsAttachedToAnyPed(): boolean;
422
+ get IsAttachedToAnyPed(): boolean;
423
+ /**
424
+ * @param to
425
+ * @returns
426
+ */
427
+ isAttachedToEntity(to: Entity): boolean;
428
+ /**
429
+ * @returns
430
+ */
431
+ hasBeenDamagedByAnyObject(): boolean;
432
+ /**
433
+ * @param rotationOrder
434
+ * @returns
435
+ */
436
+ getRotation(rotationOrder: number): Vector3;
437
+ /**
438
+ * @param toggle
439
+ */
440
+ set MotionBlur(toggle: boolean);
441
+ resetAlpha(): void;
442
+ /**
443
+ * 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
444
+ *
445
+ * @param pos
446
+ * @param xSize
447
+ * @param ySize
448
+ * @param zSize
449
+ * @param p7
450
+ * @param p8
451
+ * @param p9
452
+ * @returns
453
+ */
454
+ isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
455
+ /**
456
+ * 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).
457
+ *
458
+ * @param value
459
+ */
460
+ set LodDist(value: number);
461
+ /**
462
+ * @param toggle
463
+ */
464
+ set Dynamic(toggle: boolean);
465
+ /**
466
+ * @param radius
467
+ */
468
+ set CustomPickupRadius(radius: number);
469
+ /**
470
+ * @returns
471
+ */
472
+ get PopulationType(): number;
473
+ /**
474
+ * @returns
475
+ */
476
+ get IsAVehicle(): boolean;
477
+ /**
478
+ * @param pos
479
+ * @param atTop
480
+ * @param inWorldCoords
481
+ * @returns
482
+ */
483
+ getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
484
+ /**
485
+ * @param pos
486
+ * @returns
487
+ */
488
+ getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
489
+ addTrackingTrails(): void;
379
490
  /**
380
- * @param to
381
- * @returns
491
+ * @param toggle
382
492
  */
383
- isAttachedToEntity(to: Entity): boolean;
493
+ set CanClimbOnEntity(toggle: boolean);
384
494
  /**
385
- * @returns
495
+ * @returns minimum; maximum
386
496
  */
387
- hasBeenDamagedByAnyObject(): boolean;
497
+ get WorldPositionOfDimensions(): [Vector3, Vector3];
388
498
  /**
389
- * @param rotationOrder
499
+ * @param p1
390
500
  * @returns
391
501
  */
392
- getRotation(rotationOrder: number): Vector3;
502
+ isUnderwater(p1: boolean): any;
393
503
  /**
394
- * @param toggle
504
+ * @param animation
505
+ * @param animGroup
506
+ * @param p3
507
+ * @returns
395
508
  */
396
- set MotionBlur(toggle: boolean);
397
- resetAlpha(): void;
509
+ stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
398
510
  /**
399
- * 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
400
- *
401
- * @param pos
402
- * @param xSize
403
- * @param ySize
404
- * @param zSize
405
- * @param p7
406
- * @param p8
407
- * @param p9
408
511
  * @returns
409
512
  */
410
- isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
513
+ hasCollidedWithAnything(): boolean;
411
514
  /**
412
515
  * @param entity2
413
516
  * @param p2
@@ -504,184 +607,255 @@ export declare class Entity implements IHandle {
504
607
  */
505
608
  isUpright(angle: number): boolean;
506
609
  /**
507
- * @param targetEntity
610
+ * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
611
+ *
508
612
  * @returns
509
613
  */
510
- isTouchingEntity(targetEntity: Entity): boolean;
511
- deleteCarriable(): void;
614
+ get VehicleIndexFromIndex(): Vehicle | null;
512
615
  /**
513
- * Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
514
- *
515
- * @param animDict
516
- * @param animName
517
616
  * @returns
518
617
  */
519
- getAnimCurrentTime(animDict: string | null, animName: string | null): number;
618
+ get IsVisible(): boolean;
520
619
  /**
521
- * @param entity2
522
- * @param thisFrameOnly
620
+ * SET_ENTITY_LO*
621
+ *
622
+ * @param toggle
523
623
  */
524
- setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
624
+ N_0xFF9965C47FA404DA(toggle: boolean): void;
525
625
  /**
526
- * Result is in meters per second (m/s)
626
+ * Valid indices: 0 - 3
627
+ * Index 1 always returns a `hogtied` config, doesn't matter the entity.
628
+ * It's for humans only and the ped must be resurrected first if it's dead.
527
629
  *
630
+ * @param index
528
631
  * @returns
529
632
  */
530
- get Speed(): number;
531
- /**
532
- * @param bOnlyDamagedWhenRunningScript
533
- */
534
- set CanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean);
633
+ getOptimalCarryConfig(index: number): number;
634
+ setFadeIn(): void;
535
635
  /**
536
636
  * @returns
537
637
  */
538
- get IsTrackedVisible(): any;
638
+ hasBeenDamagedByAnyPed(): boolean;
539
639
  /**
540
- * @param p1
541
- * @param collision
640
+ * @param pos
641
+ * @param xAxis
642
+ * @param yAxis
643
+ * @param zAxis
644
+ * @param clearArea
542
645
  */
543
- detachEntity(p1: boolean, collision: boolean): void;
646
+ setCoords(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean, clearArea: boolean): void;
544
647
  /**
648
+ * @param boneName
545
649
  * @returns
546
650
  */
547
- get IsVisibleToScript(): boolean;
651
+ getBoneIndexByName(boneName: string | null): number;
548
652
  /**
549
- * @param entity2
550
- * @param traceType
551
- * @returns
653
+ * @param pause
552
654
  */
553
- hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
655
+ pauseTracking(pause: boolean): void;
554
656
  /**
555
- * Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
556
- * *GET_ENTITY**
657
+ * @param toggle
658
+ */
659
+ set LoadCollisionFlag(toggle: boolean);
660
+ /**
661
+ * Changes type and quality of skins
662
+ * type hashes: https://pastebin.com/C1WvQjCy
557
663
  *
558
- * @param animDict
559
- * @param animClip
664
+ * @param type
665
+ */
666
+ set CarcassType(type: string | number);
667
+ /**
668
+ * @param toggle
669
+ */
670
+ set HasGravity(toggle: boolean);
671
+ /**
672
+ * @param relative
560
673
  * @returns
561
674
  */
562
- N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
675
+ getSpeedVector(relative: boolean): Vector3;
563
676
  /**
564
- * @param playerPedToIgnore
565
- * @param flags
677
+ * @param entity2
678
+ * @param p2
679
+ * @param p3
566
680
  * @returns
567
681
  */
568
- getNearestPlayerToEntity(playerPedToIgnore: Ped, flags: number): Player | null;
682
+ hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
569
683
  /**
570
- * Gets the Y-component of the entity's forward vector.
571
- *
572
684
  * @returns
573
685
  */
574
- get ForwardY(): number;
686
+ get IsFullyLooted(): any;
575
687
  /**
576
- * @param pitch
577
- * @param roll
578
- * @param yaw
579
- * @param rotationOrder
580
- * @param p5
688
+ * @returns
581
689
  */
582
- setRotation(pitch: number, roll: number, yaw: number, rotationOrder: number, p5: boolean): void;
690
+ get IsOccluded(): boolean;
583
691
  /**
584
- * @param p1
585
- * @param relationshipGroup
692
+ * @param toggle
586
693
  */
587
- setOnlyDamagedByRelationshipGroup(p1: boolean, relationshipGroup: string | number): void;
694
+ set CanBeDamaged(toggle: boolean);
588
695
  /**
589
- * https://github.com/femga/rdr3_discoveries/tree/master/AI/ENTITY_PROOFS
590
- * 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
591
- *
592
- * @param proofsBitset
593
- * @param specialFlag
696
+ * @param forceFlags
697
+ * @param pos
698
+ * @param offset
699
+ * @param boneIndex
700
+ * @param isDirectionRel
701
+ * @param ignoreUpVec
702
+ * @param isForceRel
703
+ * @param p12
704
+ * @param p13
594
705
  */
595
- setProofs(proofsBitset: number, specialFlag: boolean): void;
706
+ applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
596
707
  /**
597
708
  * @returns
598
709
  */
599
- hasCollisionLoadedAroundEntity(): boolean;
710
+ get IsDead(): boolean;
600
711
  /**
712
+ * @param pos1
713
+ * @param pos2
714
+ * @param p7
715
+ * @param p8
716
+ * @param p9
601
717
  * @returns
602
718
  */
603
- get IsCarriablePelt(): any;
719
+ isInArea(pos1: Vector3, pos2: Vector3, p7: boolean, p8: boolean, p9: any): boolean;
604
720
  /**
605
- * @param p1
721
+ * Returns the coordinates of an entity-bone.
722
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames
723
+ *
724
+ * @param boneIndex
606
725
  * @returns
607
726
  */
608
- getVelocity(p1: number): Vector3;
727
+ getWorldPositionOfBone(boneIndex: number): Vector3;
609
728
  /**
610
- * @param toggle
729
+ * https://github.com/femga/rdr3_discoveries/tree/master/animations
730
+ *
731
+ * @param animName
732
+ * @param animDict
733
+ * @param p3
734
+ * @param loop
735
+ * @param stayInAnim
736
+ * @param p6
737
+ * @param delta
738
+ * @param bitset
739
+ * @returns
611
740
  */
612
- set CanAutoVaultOnEntity(toggle: boolean);
741
+ playAnim(animName: string | null, animDict: string | null, p3: number, loop: boolean, stayInAnim: boolean, p6: boolean, delta: number, bitset: any): boolean;
613
742
  /**
614
- * 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.
615
- * https://github.com/femga/rdr3_discoveries/blob/master/AI/EVENTS/loot_rewards.lua
743
+ * Returns false if entity is not a ped or object.
616
744
  *
617
- * @param lootTable
745
+ * @returns lootTable
746
+ */
747
+ get ScriptOverrideLootTablePermanent(): [any, number];
748
+ /**
749
+ * @param animDict
750
+ * @param animName
751
+ * @param p3
618
752
  * @returns
619
753
  */
620
- scriptOverrideLootTablePermanent(lootTable: string | number): any;
754
+ hasAnimFinished(animDict: string | null, animName: string | null, p3: number): boolean;
621
755
  /**
622
- * @returns argStruct
756
+ * @param bCanBeDamaged
757
+ * @param relGroup
623
758
  */
624
- get Script(): [number, number];
759
+ setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
625
760
  /**
626
- * @param actionHash
627
761
  * @returns
628
762
  */
629
- hasAnimEventFired(actionHash: string | number): boolean;
763
+ get UprightValue(): number;
630
764
  /**
631
- * @param p1
765
+ * @param pos
766
+ * @param heading
767
+ * @param xAxis
768
+ * @param yAxis
769
+ * @param zAxis
632
770
  */
633
- N_0xEF259AA1E097E0AD(p1: any): void;
771
+ setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
634
772
  /**
635
- * Getter for FREEZE_ENTITY_POSITION
773
+ * Returns zero if the entity is not a carriable
636
774
  *
637
775
  * @returns
638
776
  */
639
- get IsFrozen(): any;
777
+ get CarryConfig(): number;
640
778
  /**
641
- * Returns the entity that is looting a ped but only while the looting is active
779
+ * tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
642
780
  *
643
- * @returns
781
+ * @param tier
782
+ * @param p2
644
783
  */
645
- get LootingPed(): Ped | null;
784
+ setThreatTier(tier: number, p2: boolean): void;
646
785
  /**
786
+ * Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
787
+ *
647
788
  * @returns
648
789
  */
649
- get IsWaitingForWorldCollision(): boolean;
790
+ get Heading(): number;
650
791
  /**
651
- * Gets the X-component of the entity's forward vector.
792
+ * Returns the LOD distance of an entity.
652
793
  *
653
794
  * @returns
654
795
  */
655
- get ForwardX(): number;
796
+ get LodDist(): number;
656
797
  /**
657
798
  * @returns
658
799
  */
659
- get IsAPed(): boolean;
800
+ doesHaveDrawable(): boolean;
801
+ /**
802
+ * @param xyzw
803
+ */
804
+ set Quaternion(xyzw: Vector4);
660
805
  /**
661
806
  * @returns
662
807
  */
663
- get Pitch(): number;
808
+ get IsAttachedToAnyObject(): boolean;
809
+ /**
810
+ * Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
811
+ *
812
+ * @param toggle
813
+ */
814
+ set Invincible(toggle: boolean);
815
+ /**
816
+ * Attaches entity1 to bone (boneIndex) of entity2. boneIndex - this is different to boneID, use GET_PED_BONE_INDEX to get the index from the ID. use the index for attaching to specific bones. entity1 will be attached to entity2's centre if bone index given doesn't correspond to bone indexes for that entity type.
817
+ * https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
818
+ * collision - controls collision between the two entities (FALSE disables collision).
819
+ * isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
820
+ * vertexIndex - position of vertex
821
+ * fixedRot - if false it ignores entity vector
822
+ *
823
+ * @param entity2
824
+ * @param boneIndex
825
+ * @param pos
826
+ * @param rot
827
+ * @param p9
828
+ * @param useSoftPinning
829
+ * @param collision
830
+ * @param isPed
831
+ * @param vertexIndex
832
+ * @param fixedRot
833
+ * @param p15
834
+ * @param p16
835
+ */
836
+ attachToEntity(entity2: Entity, boneIndex: number, pos: Vector3, rot: Vector3, p9: boolean, useSoftPinning: boolean, collision: boolean, isPed: boolean, vertexIndex: number, fixedRot: boolean, p15: boolean, p16: boolean): void;
664
837
  /**
665
838
  * @returns
666
839
  */
667
- get IsStatic(): boolean;
840
+ get IsAnimal(): any;
668
841
  /**
669
- * Returns the model hash from the entity
842
+ * p6/relative - makes the xyz force not relative to world coords, but to something else
843
+ * p7/highForce - setting false will make the force really low
670
844
  *
671
- * @returns
672
- */
673
- get Model(): number;
674
- /**
675
- * Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
845
+ * @param forceType
846
+ * @param pos
847
+ * @param component
848
+ * @param isDirectionRel
849
+ * @param isForceRel
850
+ * @param p8
676
851
  */
677
- deleteEntity(): void;
852
+ applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
678
853
  /**
679
- * @param team
680
- * @param playerPedToIgnore
681
- * @param flags
854
+ * Old name: _GET_ENTITY_CAN_BE_DAMAGED
855
+ *
682
856
  * @returns
683
857
  */
684
- getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
858
+ get CanBeDamaged(): any;
685
859
  /**
686
860
  * Seems to return true if entity is burned / scorched
687
861
  * *GET_ENTITY**
@@ -807,146 +981,61 @@ export declare class Entity implements IHandle {
807
981
  */
808
982
  get IsPredator(): any;
809
983
  /**
810
- * enum eCarriableState
811
- * {
812
- * CARRIABLE_STATE_NONE,
813
- * CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
814
- * CARRIABLE_STATE_CARRIABLE_INTRO,
815
- * CARRIABLE_STATE_CARRIABLE,
816
- * CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
817
- * CARRIABLE_STATE_CARRIED_BY_HUMAN,
818
- * CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
819
- * CARRIABLE_STATE_CARRIED_BY_MOUNT,
820
- * CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
821
- * CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
822
- * CARRIABLE_STATE_BEING_CUT_FREE,
823
- * CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
824
- * CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
825
- * };
826
- *
827
- * @returns
828
- */
829
- get CarriableState(): number;
830
- /**
831
- * @param value
832
- */
833
- set MaxHealth(value: number);
834
- /**
835
- * Params: p1 (probably animType) = 1, 0
984
+ * Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
836
985
  *
837
- * @param p1
838
986
  * @returns
839
987
  */
840
- isPlayingAnyAnim(p1: number): boolean;
841
- /**
842
- * @param enabled
843
- */
844
- set LightsEnabled(enabled: boolean);
988
+ get Type(): number;
845
989
  /**
846
- * Offset values are relative to the entity. x = left/right
847
- * y = forward/backward
848
- * z = up/down
849
- *
850
- * @param offset
851
990
  * @returns
852
991
  */
853
- getOffsetFromInWorldCoords(offset: Vector3): Vector3;
992
+ get IsOwnedByPersistenceSystem(): any;
854
993
  /**
855
- * Checks if entity1 is within the box defined by x/y/zSize of entity2. Last three parameters are almost always p5 = 0, p6 = 1, p7 = 0
856
- *
857
- * @param entity2
858
- * @param xSize
859
- * @param ySize
860
- * @param zSize
861
- * @param p5
862
- * @param p6
863
- * @param p7
994
+ * @param animDict
995
+ * @param animName
996
+ * @param animType
864
997
  * @returns
865
998
  */
866
- isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
867
- /**
868
- * @param toggle
869
- */
870
- set Visible(toggle: boolean);
999
+ isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
871
1000
  /**
872
- * Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
873
- *
874
- * @param toggle
1001
+ * Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
875
1002
  */
876
- set ShouldFreezeWaitingOnCollision(toggle: boolean);
1003
+ setAsNoLongerNeeded(): void;
877
1004
  /**
878
- * Note: this native was removed in 1232 but added back in 1311
879
- * Old name: _GET_ENTITY_PROOFS
880
- *
881
1005
  * @returns
882
1006
  */
883
- get Proofs(): number;
1007
+ hasBeenDamagedByAnyVehicle(): boolean;
884
1008
  /**
885
- * skin - everything alpha except skin
886
- * Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
887
- *
888
- * @param alphaLevel
889
- * @param skin
1009
+ * @param animDict
1010
+ * @param animName
1011
+ * @param speedMultiplier
890
1012
  */
891
- setAlpha(alphaLevel: number, skin: boolean): void;
1013
+ setAnimSpeed(animDict: string | null, animName: string | null, speedMultiplier: number): void;
1014
+ unpinMapEntity(): void;
892
1015
  /**
1016
+ * Get how much of the entity is submerged. 1.0f is whole entity.
1017
+ *
893
1018
  * @returns
894
1019
  */
895
- get ThreatTier(): number;
896
- /**
897
- * @param p1
898
- */
899
- N_0xA48E4801DEBDF7E4(p1: boolean): void;
900
- /**
901
- * @param toggle
902
- * @param keepPhysics
903
- */
904
- setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
905
- /**
906
- * @param p1
907
- */
908
- N_0xCDB682BB47C02F0A(p1: string | number): void;
1020
+ get SubmergedLevel(): number;
909
1021
  /**
910
- * @param volume
911
- * @param p2
912
- * @param p3
913
1022
  * @returns
914
1023
  */
915
- isInVolume(volume: number, p2: boolean, p3: number): boolean;
916
- /**
917
- * @returns rightVector; forwardVector; upVector; position
918
- */
919
- get Matrix(): [Vector3, Vector3, Vector3, Vector3];
920
- /**
921
- * 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.
922
- */
923
- N_0x371D179701D9C082(): void;
1024
+ get IsAttached(): boolean;
924
1025
  /**
1026
+ * SET_ENTITY_A*
1027
+ *
925
1028
  * @param p1
926
- * @returns
927
- */
928
- getMaxHealth(p1: boolean): number;
929
- /**
930
- * @param animDict
931
- * @param animName
932
- * @param time
933
1029
  */
934
- setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
1030
+ N_0xC0EDEF16D90661EE(p1: number): void;
935
1031
  /**
936
- * Gets the current coordinates for a specified entity.
937
- * `entity` = The entity to get the coordinates from.
938
- * `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.
939
- *
940
- * @param alive
941
- * @param realCoords
942
- * @returns
1032
+ * @param looted
943
1033
  */
944
- getCoords(alive?: boolean, realCoords?: boolean): Vector3;
945
- get Coords(): Vector3;
1034
+ set FullyLooted(looted: boolean);
946
1035
  /**
947
1036
  * @returns
948
1037
  */
949
- get IsAnObject(): boolean;
1038
+ get IsAttachedToAnyVehicle(): boolean;
950
1039
  /**
951
1040
  * @returns
952
1041
  */
@@ -1010,95 +1099,6 @@ export declare class Entity implements IHandle {
1010
1099
  * @returns
1011
1100
  */
1012
1101
  get HealthFloat(): number;
1013
- /**
1014
- * 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).
1015
- *
1016
- * @param value
1017
- */
1018
- set LodDist(value: number);
1019
- /**
1020
- * @param toggle
1021
- */
1022
- set Dynamic(toggle: boolean);
1023
- /**
1024
- * @param radius
1025
- */
1026
- set CustomPickupRadius(radius: number);
1027
- /**
1028
- * @returns
1029
- */
1030
- get PopulationType(): number;
1031
- /**
1032
- * @returns
1033
- */
1034
- get IsAVehicle(): boolean;
1035
- /**
1036
- * @param pos
1037
- * @param atTop
1038
- * @param inWorldCoords
1039
- * @returns
1040
- */
1041
- getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
1042
- /**
1043
- * @param pos
1044
- * @returns
1045
- */
1046
- getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
1047
- addTrackingTrails(): void;
1048
- /**
1049
- * @param toggle
1050
- */
1051
- set CanClimbOnEntity(toggle: boolean);
1052
- /**
1053
- * @returns minimum; maximum
1054
- */
1055
- get WorldPositionOfDimensions(): [Vector3, Vector3];
1056
- /**
1057
- * @param p1
1058
- * @returns
1059
- */
1060
- isUnderwater(p1: boolean): any;
1061
- /**
1062
- * @param animation
1063
- * @param animGroup
1064
- * @param p3
1065
- * @returns
1066
- */
1067
- stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
1068
- /**
1069
- * @returns
1070
- */
1071
- hasCollidedWithAnything(): boolean;
1072
- /**
1073
- * Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
1074
- *
1075
- * @returns
1076
- */
1077
- get VehicleIndexFromIndex(): Vehicle | null;
1078
- /**
1079
- * @returns
1080
- */
1081
- get IsVisible(): boolean;
1082
- /**
1083
- * SET_ENTITY_LO*
1084
- *
1085
- * @param toggle
1086
- */
1087
- N_0xFF9965C47FA404DA(toggle: boolean): void;
1088
- /**
1089
- * Valid indices: 0 - 3
1090
- * Index 1 always returns a `hogtied` config, doesn't matter the entity.
1091
- * It's for humans only and the ped must be resurrected first if it's dead.
1092
- *
1093
- * @param index
1094
- * @returns
1095
- */
1096
- getOptimalCarryConfig(index: number): number;
1097
- setFadeIn(): void;
1098
- /**
1099
- * @returns
1100
- */
1101
- hasBeenDamagedByAnyPed(): boolean;
1102
1102
  /**
1103
1103
  * Gets the network ID of this entity for network synchronization.
1104
1104
  */