@nativewrappers/redm-codegen 0.0.2 → 0.0.3
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.
- package/dist/classes/AnimScene.d.ts +142 -142
- package/dist/classes/AnimScene.d.ts.map +1 -1
- package/dist/classes/AnimScene.js +203 -203
- package/dist/classes/BaseModel.d.ts +29 -29
- package/dist/classes/BaseModel.d.ts.map +1 -1
- package/dist/classes/BaseModel.js +43 -43
- package/dist/classes/BaseTask.d.ts +34 -34
- package/dist/classes/BaseTask.d.ts.map +1 -1
- package/dist/classes/BaseTask.js +42 -42
- package/dist/classes/Cam.d.ts +71 -71
- package/dist/classes/Cam.d.ts.map +1 -1
- package/dist/classes/Cam.js +102 -102
- package/dist/classes/Entity.d.ts +387 -386
- package/dist/classes/Entity.d.ts.map +1 -1
- package/dist/classes/Entity.js +509 -504
- package/dist/classes/Interior.d.ts +27 -27
- package/dist/classes/Interior.d.ts.map +1 -1
- package/dist/classes/Interior.js +42 -42
- package/dist/classes/Ped.d.ts +67 -66
- package/dist/classes/Ped.d.ts.map +1 -1
- package/dist/classes/Ped.js +80 -75
- package/dist/classes/PedTask.d.ts +1518 -1518
- package/dist/classes/PedTask.d.ts.map +1 -1
- package/dist/classes/PedTask.js +1930 -1930
- package/dist/classes/PersChar.d.ts +11 -11
- package/dist/classes/PersChar.d.ts.map +1 -1
- package/dist/classes/PersChar.js +23 -23
- package/dist/classes/Pickup.d.ts +7 -7
- package/dist/classes/Pickup.d.ts.map +1 -1
- package/dist/classes/Pickup.js +13 -13
- package/dist/classes/Player.d.ts +237 -237
- package/dist/classes/Player.d.ts.map +1 -1
- package/dist/classes/Player.js +319 -319
- package/dist/classes/Prop.d.ts +105 -104
- package/dist/classes/Prop.d.ts.map +1 -1
- package/dist/classes/Prop.js +155 -150
- package/dist/classes/PropSet.d.ts +1 -1
- package/dist/classes/PropSet.d.ts.map +1 -1
- package/dist/classes/Vehicle.d.ts +1 -0
- package/dist/classes/Vehicle.d.ts.map +1 -1
- package/dist/classes/Vehicle.js +5 -0
- package/dist/classes/VehicleTask.d.ts +21 -21
- package/dist/classes/VehicleTask.d.ts.map +1 -1
- package/dist/classes/VehicleTask.js +27 -27
- package/dist/classes/Volume.d.ts +40 -40
- package/dist/classes/Volume.d.ts.map +1 -1
- package/dist/classes/Volume.js +54 -54
- package/dist/classes/Weapon.d.ts +364 -364
- package/dist/classes/Weapon.d.ts.map +1 -1
- package/dist/classes/Weapon.js +515 -515
- package/dist/namespaces/Aitransport.d.ts +77 -77
- package/dist/namespaces/Aitransport.d.ts.map +1 -1
- package/dist/namespaces/Aitransport.js +94 -94
- package/dist/namespaces/Animscene.d.ts +65 -65
- package/dist/namespaces/Animscene.d.ts.map +1 -1
- package/dist/namespaces/Animscene.js +83 -83
- package/dist/namespaces/Audio.d.ts +464 -464
- package/dist/namespaces/Audio.d.ts.map +1 -1
- package/dist/namespaces/Audio.js +651 -651
- package/dist/namespaces/Bounty.d.ts +23 -23
- package/dist/namespaces/Bounty.d.ts.map +1 -1
- package/dist/namespaces/Bounty.js +40 -40
- package/dist/namespaces/Brain.d.ts +15 -15
- package/dist/namespaces/Brain.d.ts.map +1 -1
- package/dist/namespaces/Brain.js +20 -20
- package/dist/namespaces/CamStatics.d.ts +459 -459
- package/dist/namespaces/CamStatics.d.ts.map +1 -1
- package/dist/namespaces/CamStatics.js +719 -719
- package/dist/namespaces/Collection.d.ts +78 -78
- package/dist/namespaces/Collection.d.ts.map +1 -1
- package/dist/namespaces/Collection.js +109 -109
- package/dist/namespaces/Companion.d.ts +22 -22
- package/dist/namespaces/Companion.d.ts.map +1 -1
- package/dist/namespaces/Companion.js +30 -30
- package/dist/namespaces/Compendium.d.ts +94 -94
- package/dist/namespaces/Compendium.d.ts.map +1 -1
- package/dist/namespaces/Compendium.js +126 -126
- package/dist/namespaces/Databinding.d.ts +113 -113
- package/dist/namespaces/Databinding.d.ts.map +1 -1
- package/dist/namespaces/Databinding.js +167 -167
- package/dist/namespaces/Dlc.d.ts +5 -5
- package/dist/namespaces/Dlc.d.ts.map +1 -1
- package/dist/namespaces/Dlc.js +9 -9
- package/dist/namespaces/EntityStatics.d.ts +164 -164
- package/dist/namespaces/EntityStatics.d.ts.map +1 -1
- package/dist/namespaces/EntityStatics.js +225 -225
- package/dist/namespaces/Event.d.ts +62 -62
- package/dist/namespaces/Event.d.ts.map +1 -1
- package/dist/namespaces/Event.js +82 -82
- package/dist/namespaces/Fire.d.ts +7 -7
- package/dist/namespaces/Fire.d.ts.map +1 -1
- package/dist/namespaces/Fire.js +9 -9
- package/dist/namespaces/Graphics.d.ts +688 -688
- package/dist/namespaces/Graphics.d.ts.map +1 -1
- package/dist/namespaces/Graphics.js +876 -876
- package/dist/namespaces/Hud.d.ts +456 -456
- package/dist/namespaces/Hud.d.ts.map +1 -1
- package/dist/namespaces/Hud.js +598 -598
- package/dist/namespaces/InteriorStatics.d.ts +42 -42
- package/dist/namespaces/InteriorStatics.d.ts.map +1 -1
- package/dist/namespaces/InteriorStatics.js +56 -56
- package/dist/namespaces/Inventory.d.ts +156 -156
- package/dist/namespaces/Inventory.d.ts.map +1 -1
- package/dist/namespaces/Inventory.js +210 -210
- package/dist/namespaces/Itemdatabase.d.ts +3 -3
- package/dist/namespaces/Itemdatabase.d.ts.map +1 -1
- package/dist/namespaces/Law.d.ts +2 -2
- package/dist/namespaces/Law.d.ts.map +1 -1
- package/dist/namespaces/Map.d.ts +128 -128
- package/dist/namespaces/Map.d.ts.map +1 -1
- package/dist/namespaces/Map.js +180 -180
- package/dist/namespaces/Minigame.d.ts +60 -60
- package/dist/namespaces/Minigame.d.ts.map +1 -1
- package/dist/namespaces/Minigame.js +88 -88
- package/dist/namespaces/Misc.d.ts +5 -5
- package/dist/namespaces/Misc.d.ts.map +1 -1
- package/dist/namespaces/Missiondata.d.ts +3 -3
- package/dist/namespaces/Missiondata.d.ts.map +1 -1
- package/dist/namespaces/Netshopping.d.ts +1 -1
- package/dist/namespaces/Netshopping.d.ts.map +1 -1
- package/dist/namespaces/Network.d.ts +1528 -1536
- package/dist/namespaces/Network.d.ts.map +1 -1
- package/dist/namespaces/Network.js +2196 -2204
- package/dist/namespaces/Object.d.ts +244 -244
- package/dist/namespaces/Object.d.ts.map +1 -1
- package/dist/namespaces/Object.js +355 -355
- package/dist/namespaces/Pad.d.ts +43 -43
- package/dist/namespaces/Pad.d.ts.map +1 -1
- package/dist/namespaces/Pad.js +58 -58
- package/dist/namespaces/PedStatics.d.ts +21 -21
- package/dist/namespaces/PedStatics.d.ts.map +1 -1
- package/dist/namespaces/PedStatics.js +26 -26
- package/dist/namespaces/Perschar.d.ts +62 -62
- package/dist/namespaces/Perschar.d.ts.map +1 -1
- package/dist/namespaces/Perschar.js +91 -91
- package/dist/namespaces/Persistence.d.ts +30 -30
- package/dist/namespaces/Persistence.d.ts.map +1 -1
- package/dist/namespaces/Persistence.js +42 -42
- package/dist/namespaces/Physics.d.ts +207 -207
- package/dist/namespaces/Physics.d.ts.map +1 -1
- package/dist/namespaces/Physics.js +310 -310
- package/dist/namespaces/PlayerStatics.d.ts +72 -72
- package/dist/namespaces/PlayerStatics.d.ts.map +1 -1
- package/dist/namespaces/PlayerStatics.js +103 -103
- package/dist/namespaces/Population.d.ts +88 -88
- package/dist/namespaces/Population.d.ts.map +1 -1
- package/dist/namespaces/Population.js +116 -116
- package/dist/namespaces/Posse.d.ts +49 -49
- package/dist/namespaces/Posse.d.ts.map +1 -1
- package/dist/namespaces/Posse.js +79 -79
- package/dist/namespaces/Propset.d.ts +1 -1
- package/dist/namespaces/Propset.d.ts.map +1 -1
- package/dist/namespaces/Scripts.d.ts +3 -3
- package/dist/namespaces/Scripts.d.ts.map +1 -1
- package/dist/namespaces/Shapetest.d.ts +11 -11
- package/dist/namespaces/Shapetest.d.ts.map +1 -1
- package/dist/namespaces/Shapetest.js +13 -13
- package/dist/namespaces/Socialclub.d.ts +1 -1
- package/dist/namespaces/Socialclub.d.ts.map +1 -1
- package/dist/namespaces/Stats.d.ts +174 -174
- package/dist/namespaces/Stats.d.ts.map +1 -1
- package/dist/namespaces/Stats.js +240 -240
- package/dist/namespaces/Streaming.d.ts +127 -127
- package/dist/namespaces/Streaming.d.ts.map +1 -1
- package/dist/namespaces/Streaming.js +193 -193
- package/dist/namespaces/Task.d.ts +220 -220
- package/dist/namespaces/Task.d.ts.map +1 -1
- package/dist/namespaces/Task.js +299 -299
- package/dist/namespaces/Telemetry.d.ts +188 -188
- package/dist/namespaces/Telemetry.d.ts.map +1 -1
- package/dist/namespaces/Telemetry.js +249 -249
- package/dist/namespaces/Uiapps.d.ts +24 -24
- package/dist/namespaces/Uiapps.d.ts.map +1 -1
- package/dist/namespaces/Uiapps.js +33 -33
- package/dist/namespaces/Uistickyfeed.d.ts +16 -16
- package/dist/namespaces/Uistickyfeed.d.ts.map +1 -1
- package/dist/namespaces/Uistickyfeed.js +21 -21
- package/dist/namespaces/VehicleStatics.d.ts +2 -2
- package/dist/namespaces/VehicleStatics.d.ts.map +1 -1
- package/dist/namespaces/VolumeStatics.d.ts +64 -64
- package/dist/namespaces/VolumeStatics.d.ts.map +1 -1
- package/dist/namespaces/VolumeStatics.js +85 -85
- package/dist/namespaces/WeaponStatics.d.ts +262 -262
- package/dist/namespaces/WeaponStatics.d.ts.map +1 -1
- package/dist/namespaces/WeaponStatics.js +361 -361
- package/dist/namespaces/Zone.d.ts +2 -2
- package/dist/namespaces/Zone.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/classes/AnimScene.ts +230 -230
- package/src/classes/BaseModel.ts +50 -50
- package/src/classes/BaseTask.ts +46 -46
- package/src/classes/Cam.ts +113 -113
- package/src/classes/Entity.ts +537 -532
- package/src/classes/Interior.ts +43 -43
- package/src/classes/Ped.ts +100 -95
- package/src/classes/PedTask.ts +1969 -1969
- package/src/classes/PersChar.ts +28 -28
- package/src/classes/Pickup.ts +13 -13
- package/src/classes/Player.ts +364 -364
- package/src/classes/Prop.ts +167 -162
- package/src/classes/PropSet.ts +1 -1
- package/src/classes/Vehicle.ts +5 -0
- package/src/classes/VehicleTask.ts +30 -30
- package/src/classes/Volume.ts +62 -62
- package/src/classes/Weapon.ts +517 -517
- package/src/namespaces/Aitransport.ts +102 -102
- package/src/namespaces/Animscene.ts +92 -92
- package/src/namespaces/Audio.ts +765 -765
- package/src/namespaces/Bounty.ts +46 -46
- package/src/namespaces/Brain.ts +22 -22
- package/src/namespaces/CamStatics.ts +747 -747
- package/src/namespaces/Collection.ts +112 -112
- package/src/namespaces/Companion.ts +34 -34
- package/src/namespaces/Compendium.ts +131 -131
- package/src/namespaces/Databinding.ts +170 -170
- package/src/namespaces/Dlc.ts +9 -9
- package/src/namespaces/EntityStatics.ts +237 -237
- package/src/namespaces/Event.ts +92 -92
- package/src/namespaces/Fire.ts +10 -10
- package/src/namespaces/Graphics.ts +1206 -1206
- package/src/namespaces/Hud.ts +647 -647
- package/src/namespaces/InteriorStatics.ts +66 -66
- package/src/namespaces/Inventory.ts +237 -237
- package/src/namespaces/Itemdatabase.ts +3 -3
- package/src/namespaces/Law.ts +2 -2
- package/src/namespaces/Map.ts +204 -204
- package/src/namespaces/Minigame.ts +100 -100
- package/src/namespaces/Misc.ts +5 -5
- package/src/namespaces/Missiondata.ts +3 -3
- package/src/namespaces/Netshopping.ts +1 -1
- package/src/namespaces/Network.ts +2217 -2225
- package/src/namespaces/Object.ts +381 -381
- package/src/namespaces/Pad.ts +67 -67
- package/src/namespaces/PedStatics.ts +33 -33
- package/src/namespaces/Perschar.ts +105 -105
- package/src/namespaces/Persistence.ts +48 -48
- package/src/namespaces/Physics.ts +326 -326
- package/src/namespaces/PlayerStatics.ts +113 -113
- package/src/namespaces/Population.ts +133 -133
- package/src/namespaces/Posse.ts +80 -80
- package/src/namespaces/Propset.ts +1 -1
- package/src/namespaces/Scripts.ts +3 -3
- package/src/namespaces/Shapetest.ts +14 -14
- package/src/namespaces/Socialclub.ts +1 -1
- package/src/namespaces/Stats.ts +266 -266
- package/src/namespaces/Streaming.ts +226 -226
- package/src/namespaces/Task.ts +527 -527
- package/src/namespaces/Telemetry.ts +300 -300
- package/src/namespaces/Uiapps.ts +39 -39
- package/src/namespaces/Uistickyfeed.ts +23 -23
- package/src/namespaces/VehicleStatics.ts +2 -2
- package/src/namespaces/VolumeStatics.ts +87 -87
- package/src/namespaces/WeaponStatics.ts +365 -365
- package/src/namespaces/Zone.ts +2 -2
package/dist/classes/Entity.d.ts
CHANGED
|
@@ -11,63 +11,89 @@ export declare class Entity implements IHandle {
|
|
|
11
11
|
handle: number;
|
|
12
12
|
constructor(handle: number);
|
|
13
13
|
static fromHandle(handle: number): Entity | null;
|
|
14
|
+
static fromNetworkId(netId: number): Entity | null;
|
|
14
15
|
/**
|
|
15
|
-
* @param targetEntity
|
|
16
16
|
* @returns
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
deleteCarriable(): void;
|
|
18
|
+
getIsBird(): any;
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
20
|
+
* Gets the entity's forward vector in YX(Z) eulers. Similar to GET_ENTITY_FORWARD_VECTOR
|
|
22
21
|
*
|
|
23
|
-
* @param animDict
|
|
24
|
-
* @param animName
|
|
25
22
|
* @returns
|
|
26
23
|
*/
|
|
27
|
-
|
|
24
|
+
getForwardVectorYx(): Vector3;
|
|
28
25
|
/**
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
26
|
+
* @param pos
|
|
27
|
+
* @param xAxis
|
|
28
|
+
* @param yAxis
|
|
29
|
+
* @param zAxis
|
|
30
|
+
* @param clearArea
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
setCoords(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean, clearArea: boolean): void;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
35
|
-
*
|
|
34
|
+
* @param boneName
|
|
36
35
|
* @returns
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
getBoneIndexByName(boneName: string | null): number;
|
|
39
38
|
/**
|
|
40
|
-
* @param
|
|
39
|
+
* @param pause
|
|
41
40
|
*/
|
|
42
|
-
|
|
41
|
+
pauseTracking(pause: boolean): void;
|
|
43
42
|
/**
|
|
44
|
-
* @
|
|
43
|
+
* @param toggle
|
|
45
44
|
*/
|
|
46
|
-
|
|
45
|
+
setLoadCollisionFlag(toggle: boolean): void;
|
|
47
46
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
47
|
+
* Changes type and quality of skins
|
|
48
|
+
* type hashes: https://pastebin.com/C1WvQjCy
|
|
49
|
+
*
|
|
50
|
+
* @param type
|
|
50
51
|
*/
|
|
51
|
-
|
|
52
|
+
setCarcassType(type: string | number): void;
|
|
52
53
|
/**
|
|
54
|
+
* @param toggle
|
|
55
|
+
*/
|
|
56
|
+
setHasGravity(toggle: boolean): void;
|
|
57
|
+
/**
|
|
58
|
+
* @param relative
|
|
53
59
|
* @returns
|
|
54
60
|
*/
|
|
55
|
-
|
|
61
|
+
getSpeedVector(relative: boolean): Vector3;
|
|
56
62
|
/**
|
|
57
63
|
* @param entity2
|
|
58
|
-
* @param
|
|
64
|
+
* @param p2
|
|
65
|
+
* @param p3
|
|
59
66
|
* @returns
|
|
60
67
|
*/
|
|
61
|
-
|
|
68
|
+
hasBeenDamagedByEntity(entity2: Entity, p2: boolean, p3: boolean): boolean;
|
|
62
69
|
/**
|
|
63
|
-
* Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
|
|
64
|
-
* *GET_ENTITY**
|
|
65
|
-
*
|
|
66
|
-
* @param animDict
|
|
67
|
-
* @param animClip
|
|
68
70
|
* @returns
|
|
69
71
|
*/
|
|
70
|
-
|
|
72
|
+
isFullyLooted(): any;
|
|
73
|
+
/**
|
|
74
|
+
* @returns
|
|
75
|
+
*/
|
|
76
|
+
isOccluded(): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* @param toggle
|
|
79
|
+
*/
|
|
80
|
+
setCanBeDamaged(toggle: boolean): void;
|
|
81
|
+
/**
|
|
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
|
|
91
|
+
*/
|
|
92
|
+
applyForceToEntity(forceFlags: number, pos: Vector3, offset: Vector3, boneIndex: number, isDirectionRel: boolean, ignoreUpVec: boolean, isForceRel: boolean, p12: boolean, p13: boolean): void;
|
|
93
|
+
/**
|
|
94
|
+
* @returns
|
|
95
|
+
*/
|
|
96
|
+
isDead(): boolean;
|
|
71
97
|
/**
|
|
72
98
|
* @param playerPedToIgnore
|
|
73
99
|
* @param flags
|
|
@@ -129,7 +155,7 @@ export declare class Entity implements IHandle {
|
|
|
129
155
|
/**
|
|
130
156
|
* @returns argStruct
|
|
131
157
|
*/
|
|
132
|
-
getScript(): [
|
|
158
|
+
getScript(): [number, number];
|
|
133
159
|
/**
|
|
134
160
|
* @param actionHash
|
|
135
161
|
* @returns
|
|
@@ -178,7 +204,7 @@ export declare class Entity implements IHandle {
|
|
|
178
204
|
*
|
|
179
205
|
* @returns
|
|
180
206
|
*/
|
|
181
|
-
getModel():
|
|
207
|
+
getModel(): number;
|
|
182
208
|
/**
|
|
183
209
|
* Deletes the specified entity, then sets the handle pointed to by the pointer to NULL.
|
|
184
210
|
*/
|
|
@@ -190,6 +216,74 @@ export declare class Entity implements IHandle {
|
|
|
190
216
|
* @returns
|
|
191
217
|
*/
|
|
192
218
|
getNearestPlayerToOnTeam(team: number, playerPedToIgnore: Ped, flags: number): Player | null;
|
|
219
|
+
/**
|
|
220
|
+
* Returns the LOD distance of an entity.
|
|
221
|
+
*
|
|
222
|
+
* @returns
|
|
223
|
+
*/
|
|
224
|
+
getLodDist(): number;
|
|
225
|
+
/**
|
|
226
|
+
* @returns
|
|
227
|
+
*/
|
|
228
|
+
doesHaveDrawable(): boolean;
|
|
229
|
+
/**
|
|
230
|
+
* @param xyzw
|
|
231
|
+
*/
|
|
232
|
+
setQuaternion(xyzw: Vector4): void;
|
|
233
|
+
/**
|
|
234
|
+
* @returns
|
|
235
|
+
*/
|
|
236
|
+
isAttachedToAnyObject(): boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
|
|
239
|
+
*
|
|
240
|
+
* @param toggle
|
|
241
|
+
*/
|
|
242
|
+
setInvincible(toggle: boolean): void;
|
|
243
|
+
/**
|
|
244
|
+
* 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.
|
|
245
|
+
* https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
|
|
246
|
+
* collision - controls collision between the two entities (FALSE disables collision).
|
|
247
|
+
* isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
|
|
248
|
+
* vertexIndex - position of vertex
|
|
249
|
+
* fixedRot - if false it ignores entity vector
|
|
250
|
+
*
|
|
251
|
+
* @param entity2
|
|
252
|
+
* @param boneIndex
|
|
253
|
+
* @param pos
|
|
254
|
+
* @param rot
|
|
255
|
+
* @param p9
|
|
256
|
+
* @param useSoftPinning
|
|
257
|
+
* @param collision
|
|
258
|
+
* @param isPed
|
|
259
|
+
* @param vertexIndex
|
|
260
|
+
* @param fixedRot
|
|
261
|
+
* @param p15
|
|
262
|
+
* @param p16
|
|
263
|
+
*/
|
|
264
|
+
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;
|
|
265
|
+
/**
|
|
266
|
+
* @returns
|
|
267
|
+
*/
|
|
268
|
+
getIsAnimal(): any;
|
|
269
|
+
/**
|
|
270
|
+
* p6/relative - makes the xyz force not relative to world coords, but to something else
|
|
271
|
+
* p7/highForce - setting false will make the force really low
|
|
272
|
+
*
|
|
273
|
+
* @param forceType
|
|
274
|
+
* @param pos
|
|
275
|
+
* @param component
|
|
276
|
+
* @param isDirectionRel
|
|
277
|
+
* @param isForceRel
|
|
278
|
+
* @param p8
|
|
279
|
+
*/
|
|
280
|
+
applyForceToCenterOfMass(forceType: number, pos: Vector3, component: number, isDirectionRel: boolean, isForceRel: boolean, p8: boolean): void;
|
|
281
|
+
/**
|
|
282
|
+
* Old name: _GET_ENTITY_CAN_BE_DAMAGED
|
|
283
|
+
*
|
|
284
|
+
* @returns
|
|
285
|
+
*/
|
|
286
|
+
getCanBeDamaged(): any;
|
|
193
287
|
/**
|
|
194
288
|
* @param p1
|
|
195
289
|
*/
|
|
@@ -243,237 +337,260 @@ export declare class Entity implements IHandle {
|
|
|
243
337
|
*/
|
|
244
338
|
getNearestParticipantToEntity(): Player | null;
|
|
245
339
|
/**
|
|
246
|
-
*
|
|
247
|
-
* {
|
|
248
|
-
* CARRIABLE_STATE_NONE,
|
|
249
|
-
* CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
|
|
250
|
-
* CARRIABLE_STATE_CARRIABLE_INTRO,
|
|
251
|
-
* CARRIABLE_STATE_CARRIABLE,
|
|
252
|
-
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
|
|
253
|
-
* CARRIABLE_STATE_CARRIED_BY_HUMAN,
|
|
254
|
-
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
|
|
255
|
-
* CARRIABLE_STATE_CARRIED_BY_MOUNT,
|
|
256
|
-
* CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
|
|
257
|
-
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
|
|
258
|
-
* CARRIABLE_STATE_BEING_CUT_FREE,
|
|
259
|
-
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
|
|
260
|
-
* CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
|
|
261
|
-
* };
|
|
340
|
+
* Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
|
|
262
341
|
*
|
|
263
342
|
* @returns
|
|
264
343
|
*/
|
|
265
|
-
|
|
344
|
+
getType(): number;
|
|
266
345
|
/**
|
|
267
|
-
* @
|
|
346
|
+
* @returns
|
|
268
347
|
*/
|
|
269
|
-
|
|
348
|
+
isOwnedByPersistenceSystem(): any;
|
|
270
349
|
/**
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
* @param
|
|
350
|
+
* @param animDict
|
|
351
|
+
* @param animName
|
|
352
|
+
* @param animType
|
|
274
353
|
* @returns
|
|
275
354
|
*/
|
|
276
|
-
|
|
355
|
+
isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
|
|
277
356
|
/**
|
|
278
|
-
*
|
|
357
|
+
* Marks the specified entity (ped, vehicle or object) as no longer needed, allowing the game engine to delete it whenever it sees fit.
|
|
279
358
|
*/
|
|
280
|
-
|
|
359
|
+
setAsNoLongerNeeded(): void;
|
|
281
360
|
/**
|
|
282
|
-
* Offset values are relative to the entity. x = left/right
|
|
283
|
-
* y = forward/backward
|
|
284
|
-
* z = up/down
|
|
285
|
-
*
|
|
286
|
-
* @param offset
|
|
287
361
|
* @returns
|
|
288
362
|
*/
|
|
289
|
-
|
|
363
|
+
hasBeenDamagedByAnyVehicle(): boolean;
|
|
290
364
|
/**
|
|
291
|
-
*
|
|
365
|
+
* @param animDict
|
|
366
|
+
* @param animName
|
|
367
|
+
* @param speedMultiplier
|
|
368
|
+
*/
|
|
369
|
+
setAnimSpeed(animDict: string | null, animName: string | null, speedMultiplier: number): void;
|
|
370
|
+
unpinMapEntity(): void;
|
|
371
|
+
/**
|
|
372
|
+
* Get how much of the entity is submerged. 1.0f is whole entity.
|
|
292
373
|
*
|
|
293
|
-
* @param entity2
|
|
294
|
-
* @param xSize
|
|
295
|
-
* @param ySize
|
|
296
|
-
* @param zSize
|
|
297
|
-
* @param p5
|
|
298
|
-
* @param p6
|
|
299
|
-
* @param p7
|
|
300
374
|
* @returns
|
|
301
375
|
*/
|
|
302
|
-
|
|
376
|
+
getSubmergedLevel(): number;
|
|
303
377
|
/**
|
|
304
|
-
* @
|
|
378
|
+
* @returns
|
|
305
379
|
*/
|
|
306
|
-
|
|
380
|
+
isAttached(): boolean;
|
|
307
381
|
/**
|
|
308
|
-
*
|
|
382
|
+
* SET_ENTITY_A*
|
|
309
383
|
*
|
|
310
|
-
* @param
|
|
384
|
+
* @param p1
|
|
311
385
|
*/
|
|
312
|
-
|
|
386
|
+
N_0xC0EDEF16D90661EE(p1: number): void;
|
|
313
387
|
/**
|
|
314
|
-
*
|
|
315
|
-
* Old name: _GET_ENTITY_PROOFS
|
|
316
|
-
*
|
|
317
|
-
* @returns
|
|
388
|
+
* @param looted
|
|
318
389
|
*/
|
|
319
|
-
|
|
390
|
+
setFullyLooted(looted: boolean): void;
|
|
320
391
|
/**
|
|
321
|
-
*
|
|
322
|
-
* Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
|
|
323
|
-
*
|
|
324
|
-
* @param alphaLevel
|
|
325
|
-
* @param skin
|
|
392
|
+
* @returns
|
|
326
393
|
*/
|
|
327
|
-
|
|
394
|
+
isAttachedToAnyVehicle(): boolean;
|
|
328
395
|
/**
|
|
329
|
-
* @
|
|
396
|
+
* @param p1
|
|
330
397
|
*/
|
|
331
|
-
|
|
398
|
+
N_0xA48E4801DEBDF7E4(p1: boolean): void;
|
|
332
399
|
/**
|
|
333
|
-
* @
|
|
400
|
+
* @param toggle
|
|
401
|
+
* @param keepPhysics
|
|
334
402
|
*/
|
|
335
|
-
|
|
403
|
+
setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
|
|
336
404
|
/**
|
|
337
405
|
* @param p1
|
|
338
|
-
* @returns
|
|
339
406
|
*/
|
|
340
|
-
|
|
407
|
+
N_0xCDB682BB47C02F0A(p1: string | number): void;
|
|
341
408
|
/**
|
|
342
|
-
*
|
|
343
|
-
*
|
|
409
|
+
* @param volume
|
|
410
|
+
* @param p2
|
|
411
|
+
* @param p3
|
|
344
412
|
* @returns
|
|
345
413
|
*/
|
|
346
|
-
|
|
414
|
+
isInVolume(volume: number, p2: boolean, p3: number): boolean;
|
|
347
415
|
/**
|
|
348
|
-
* @
|
|
349
|
-
* @param keepPhysics
|
|
416
|
+
* @returns rightVector; forwardVector; upVector; position
|
|
350
417
|
*/
|
|
351
|
-
|
|
418
|
+
getMatrix(): [Vector3, Vector3, Vector3, Vector3];
|
|
419
|
+
/**
|
|
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.
|
|
421
|
+
*/
|
|
422
|
+
N_0x371D179701D9C082(): void;
|
|
352
423
|
/**
|
|
353
424
|
* @param p1
|
|
354
425
|
* @returns
|
|
355
426
|
*/
|
|
356
|
-
|
|
427
|
+
getMaxHealth(p1: boolean): number;
|
|
357
428
|
/**
|
|
358
|
-
* @
|
|
429
|
+
* @param animDict
|
|
430
|
+
* @param animName
|
|
431
|
+
* @param time
|
|
359
432
|
*/
|
|
360
|
-
|
|
433
|
+
setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
|
|
361
434
|
/**
|
|
362
|
-
*
|
|
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.
|
|
438
|
+
*
|
|
439
|
+
* @param alive
|
|
440
|
+
* @param realCoords
|
|
441
|
+
* @returns
|
|
363
442
|
*/
|
|
364
|
-
|
|
443
|
+
getCoords(alive: boolean, realCoords: boolean): Vector3;
|
|
365
444
|
/**
|
|
366
445
|
* @returns
|
|
367
446
|
*/
|
|
368
|
-
|
|
447
|
+
isAnObject(): boolean;
|
|
369
448
|
/**
|
|
370
|
-
*
|
|
449
|
+
* 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).
|
|
371
450
|
*
|
|
372
|
-
* @param
|
|
451
|
+
* @param value
|
|
452
|
+
*/
|
|
453
|
+
setLodDist(value: number): void;
|
|
454
|
+
/**
|
|
455
|
+
* @param toggle
|
|
456
|
+
*/
|
|
457
|
+
setDynamic(toggle: boolean): void;
|
|
458
|
+
/**
|
|
459
|
+
* @param radius
|
|
460
|
+
*/
|
|
461
|
+
setCustomPickupRadius(radius: number): void;
|
|
462
|
+
/**
|
|
373
463
|
* @returns
|
|
374
464
|
*/
|
|
375
|
-
|
|
465
|
+
getPopulationType(): number;
|
|
376
466
|
/**
|
|
377
|
-
* @
|
|
467
|
+
* @returns
|
|
378
468
|
*/
|
|
379
|
-
|
|
469
|
+
isAVehicle(): boolean;
|
|
380
470
|
/**
|
|
381
|
-
* Axis - Invert Axis Flags
|
|
382
|
-
*
|
|
383
471
|
* @param pos
|
|
384
|
-
* @param
|
|
385
|
-
* @param
|
|
386
|
-
* @
|
|
472
|
+
* @param atTop
|
|
473
|
+
* @param inWorldCoords
|
|
474
|
+
* @returns
|
|
387
475
|
*/
|
|
388
|
-
|
|
476
|
+
getHeight(pos: Vector3, atTop: boolean, inWorldCoords: boolean): number;
|
|
389
477
|
/**
|
|
390
|
-
*
|
|
391
|
-
*
|
|
478
|
+
* @param pos
|
|
392
479
|
* @returns
|
|
393
480
|
*/
|
|
394
|
-
|
|
481
|
+
getOffsetFromGivenWorldCoords(pos: Vector3): Vector3;
|
|
482
|
+
addTrackingTrails(): void;
|
|
483
|
+
/**
|
|
484
|
+
* @param toggle
|
|
485
|
+
*/
|
|
486
|
+
setCanClimbOnEntity(toggle: boolean): void;
|
|
487
|
+
/**
|
|
488
|
+
* @returns minimum; maximum
|
|
489
|
+
*/
|
|
490
|
+
getWorldPositionOfDimensions(): [Vector3, Vector3];
|
|
395
491
|
/**
|
|
492
|
+
* @param p1
|
|
396
493
|
* @returns
|
|
397
494
|
*/
|
|
398
|
-
|
|
495
|
+
isUnderwater(p1: boolean): any;
|
|
399
496
|
/**
|
|
400
|
-
*
|
|
401
|
-
*
|
|
497
|
+
* @param animation
|
|
498
|
+
* @param animGroup
|
|
499
|
+
* @param p3
|
|
402
500
|
* @returns
|
|
403
501
|
*/
|
|
404
|
-
|
|
502
|
+
stopAnim(animation: string | null, animGroup: string | null, p3: number): any;
|
|
405
503
|
/**
|
|
406
|
-
* @
|
|
407
|
-
* @param xAxis
|
|
408
|
-
* @param yAxis
|
|
409
|
-
* @param zAxis
|
|
410
|
-
* @param clearArea
|
|
504
|
+
* @returns
|
|
411
505
|
*/
|
|
412
|
-
|
|
506
|
+
hasCollidedWithAnything(): boolean;
|
|
413
507
|
/**
|
|
414
|
-
*
|
|
508
|
+
* Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
|
|
509
|
+
*
|
|
415
510
|
* @returns
|
|
416
511
|
*/
|
|
417
|
-
|
|
512
|
+
getVehicleIndexFromIndex(): Vehicle | null;
|
|
418
513
|
/**
|
|
419
|
-
* @
|
|
514
|
+
* @returns
|
|
420
515
|
*/
|
|
421
|
-
|
|
516
|
+
isVisible(): boolean;
|
|
422
517
|
/**
|
|
518
|
+
* SET_ENTITY_LO*
|
|
519
|
+
*
|
|
423
520
|
* @param toggle
|
|
424
521
|
*/
|
|
425
|
-
|
|
522
|
+
N_0xFF9965C47FA404DA(toggle: boolean): void;
|
|
426
523
|
/**
|
|
427
|
-
*
|
|
428
|
-
*
|
|
524
|
+
* Valid indices: 0 - 3
|
|
525
|
+
* Index 1 always returns a `hogtied` config, doesn't matter the entity.
|
|
526
|
+
* It's for humans only and the ped must be resurrected first if it's dead.
|
|
429
527
|
*
|
|
430
|
-
* @param
|
|
528
|
+
* @param index
|
|
529
|
+
* @returns
|
|
431
530
|
*/
|
|
432
|
-
|
|
531
|
+
getOptimalCarryConfig(index: number): number;
|
|
532
|
+
setFadeIn(): void;
|
|
433
533
|
/**
|
|
434
|
-
* @
|
|
534
|
+
* @returns
|
|
435
535
|
*/
|
|
436
|
-
|
|
536
|
+
hasBeenDamagedByAnyPed(): boolean;
|
|
437
537
|
/**
|
|
438
|
-
* @param
|
|
538
|
+
* @param targetEntity
|
|
439
539
|
* @returns
|
|
440
540
|
*/
|
|
441
|
-
|
|
541
|
+
isTouchingEntity(targetEntity: Entity): boolean;
|
|
542
|
+
deleteCarriable(): void;
|
|
442
543
|
/**
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
* @param
|
|
544
|
+
* Returns a normalized value between 0.0f and 1.0f. You can get the actual anim time by multiplying this by GET_ANIM_DURATION
|
|
545
|
+
*
|
|
546
|
+
* @param animDict
|
|
547
|
+
* @param animName
|
|
446
548
|
* @returns
|
|
447
549
|
*/
|
|
448
|
-
|
|
550
|
+
getAnimCurrentTime(animDict: string | null, animName: string | null): number;
|
|
551
|
+
/**
|
|
552
|
+
* @param entity2
|
|
553
|
+
* @param thisFrameOnly
|
|
554
|
+
*/
|
|
555
|
+
setNoCollisionEntity(entity2: Entity, thisFrameOnly: boolean): void;
|
|
449
556
|
/**
|
|
557
|
+
* Result is in meters per second (m/s)
|
|
558
|
+
*
|
|
450
559
|
* @returns
|
|
451
560
|
*/
|
|
452
|
-
|
|
561
|
+
getSpeed(): number;
|
|
562
|
+
/**
|
|
563
|
+
* @param bOnlyDamagedWhenRunningScript
|
|
564
|
+
*/
|
|
565
|
+
setCanOnlyBeDamagedByScriptParticipants(bOnlyDamagedWhenRunningScript: boolean): void;
|
|
453
566
|
/**
|
|
454
567
|
* @returns
|
|
455
568
|
*/
|
|
456
|
-
|
|
569
|
+
isTrackedVisible(): any;
|
|
457
570
|
/**
|
|
458
|
-
* @param
|
|
571
|
+
* @param p1
|
|
572
|
+
* @param collision
|
|
459
573
|
*/
|
|
460
|
-
|
|
574
|
+
detachEntity(p1: boolean, collision: boolean): void;
|
|
461
575
|
/**
|
|
462
|
-
* @
|
|
463
|
-
* @param pos
|
|
464
|
-
* @param offset
|
|
465
|
-
* @param boneIndex
|
|
466
|
-
* @param isDirectionRel
|
|
467
|
-
* @param ignoreUpVec
|
|
468
|
-
* @param isForceRel
|
|
469
|
-
* @param p12
|
|
470
|
-
* @param p13
|
|
576
|
+
* @returns
|
|
471
577
|
*/
|
|
472
|
-
|
|
578
|
+
isVisibleToScript(): boolean;
|
|
473
579
|
/**
|
|
580
|
+
* @param entity2
|
|
581
|
+
* @param traceType
|
|
474
582
|
* @returns
|
|
475
583
|
*/
|
|
476
|
-
|
|
584
|
+
hasClearLosToEntity(entity2: Entity, traceType: number): boolean;
|
|
585
|
+
/**
|
|
586
|
+
* Used in Script Function GENERIC_ITEM_HAS_ANIM_COMPLETED
|
|
587
|
+
* *GET_ENTITY**
|
|
588
|
+
*
|
|
589
|
+
* @param animDict
|
|
590
|
+
* @param animClip
|
|
591
|
+
* @returns
|
|
592
|
+
*/
|
|
593
|
+
N_0x8E46E18AA828334F(animDict: string | null, animClip: string | null): number;
|
|
477
594
|
/**
|
|
478
595
|
* @param pos1
|
|
479
596
|
* @param pos2
|
|
@@ -523,105 +640,37 @@ export declare class Entity implements IHandle {
|
|
|
523
640
|
* @param relGroup
|
|
524
641
|
*/
|
|
525
642
|
setCanBeDamagedByRelationshipGroup(bCanBeDamaged: boolean, relGroup: string | number): void;
|
|
526
|
-
/**
|
|
527
|
-
* @returns
|
|
528
|
-
*/
|
|
529
|
-
getUprightValue(): number;
|
|
530
|
-
/**
|
|
531
|
-
* @param pos
|
|
532
|
-
* @param heading
|
|
533
|
-
* @param xAxis
|
|
534
|
-
* @param yAxis
|
|
535
|
-
* @param zAxis
|
|
536
|
-
*/
|
|
537
|
-
setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
|
|
538
|
-
/**
|
|
539
|
-
* Returns zero if the entity is not a carriable
|
|
540
|
-
*
|
|
541
|
-
* @returns
|
|
542
|
-
*/
|
|
543
|
-
getCarryConfig(): string | number;
|
|
544
|
-
/**
|
|
545
|
-
* tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
|
|
546
|
-
*
|
|
547
|
-
* @param tier
|
|
548
|
-
* @param p2
|
|
549
|
-
*/
|
|
550
|
-
setThreatTier(tier: number, p2: boolean): void;
|
|
551
|
-
/**
|
|
552
|
-
* Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
|
|
553
|
-
*
|
|
554
|
-
* @returns
|
|
555
|
-
*/
|
|
556
|
-
getHeading(): number;
|
|
557
|
-
/**
|
|
558
|
-
* Returns the LOD distance of an entity.
|
|
559
|
-
*
|
|
560
|
-
* @returns
|
|
561
|
-
*/
|
|
562
|
-
getLodDist(): number;
|
|
563
|
-
/**
|
|
564
|
-
* @returns
|
|
565
|
-
*/
|
|
566
|
-
doesHaveDrawable(): boolean;
|
|
567
|
-
/**
|
|
568
|
-
* @param xyzw
|
|
569
|
-
*/
|
|
570
|
-
setQuaternion(xyzw: Vector4): void;
|
|
571
|
-
/**
|
|
572
|
-
* @returns
|
|
573
|
-
*/
|
|
574
|
-
isAttachedToAnyObject(): boolean;
|
|
575
|
-
/**
|
|
576
|
-
* Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.
|
|
577
|
-
*
|
|
578
|
-
* @param toggle
|
|
579
|
-
*/
|
|
580
|
-
setInvincible(toggle: boolean): void;
|
|
581
|
-
/**
|
|
582
|
-
* 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.
|
|
583
|
-
* https://github.com/femga/rdr3_discoveries/tree/master/boneNames useSoftPinning - if set to false attached entity will not detach when fixed
|
|
584
|
-
* collision - controls collision between the two entities (FALSE disables collision).
|
|
585
|
-
* isPed - pitch doesn't work when false and roll will only work on negative numbers (only peds)
|
|
586
|
-
* vertexIndex - position of vertex
|
|
587
|
-
* fixedRot - if false it ignores entity vector
|
|
588
|
-
*
|
|
589
|
-
* @param entity2
|
|
590
|
-
* @param boneIndex
|
|
591
|
-
* @param pos
|
|
592
|
-
* @param rot
|
|
593
|
-
* @param p9
|
|
594
|
-
* @param useSoftPinning
|
|
595
|
-
* @param collision
|
|
596
|
-
* @param isPed
|
|
597
|
-
* @param vertexIndex
|
|
598
|
-
* @param fixedRot
|
|
599
|
-
* @param p15
|
|
600
|
-
* @param p16
|
|
643
|
+
/**
|
|
644
|
+
* @returns
|
|
601
645
|
*/
|
|
602
|
-
|
|
646
|
+
getUprightValue(): number;
|
|
647
|
+
/**
|
|
648
|
+
* @param pos
|
|
649
|
+
* @param heading
|
|
650
|
+
* @param xAxis
|
|
651
|
+
* @param yAxis
|
|
652
|
+
* @param zAxis
|
|
653
|
+
*/
|
|
654
|
+
setCoordsAndHeading(pos: Vector3, heading: number, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
|
|
603
655
|
/**
|
|
656
|
+
* Returns zero if the entity is not a carriable
|
|
657
|
+
*
|
|
604
658
|
* @returns
|
|
605
659
|
*/
|
|
606
|
-
|
|
660
|
+
getCarryConfig(): number;
|
|
607
661
|
/**
|
|
608
|
-
*
|
|
609
|
-
* p7/highForce - setting false will make the force really low
|
|
662
|
+
* tier: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityThreatTier
|
|
610
663
|
*
|
|
611
|
-
* @param
|
|
612
|
-
* @param
|
|
613
|
-
* @param component
|
|
614
|
-
* @param isDirectionRel
|
|
615
|
-
* @param isForceRel
|
|
616
|
-
* @param p8
|
|
664
|
+
* @param tier
|
|
665
|
+
* @param p2
|
|
617
666
|
*/
|
|
618
|
-
|
|
667
|
+
setThreatTier(tier: number, p2: boolean): void;
|
|
619
668
|
/**
|
|
620
|
-
*
|
|
669
|
+
* Returns the heading of the entity in degrees. Also know as the "Yaw" of an entity.
|
|
621
670
|
*
|
|
622
671
|
* @returns
|
|
623
672
|
*/
|
|
624
|
-
|
|
673
|
+
getHeading(): number;
|
|
625
674
|
/**
|
|
626
675
|
* Seems to return true if entity is burned / scorched
|
|
627
676
|
* *GET_ENTITY**
|
|
@@ -747,114 +796,92 @@ export declare class Entity implements IHandle {
|
|
|
747
796
|
*/
|
|
748
797
|
getIsPredator(): any;
|
|
749
798
|
/**
|
|
750
|
-
*
|
|
799
|
+
* enum eCarriableState
|
|
800
|
+
* {
|
|
801
|
+
* CARRIABLE_STATE_NONE,
|
|
802
|
+
* CARRIABLE_STATE_TRANSITIONING_TO_HOGTIED,
|
|
803
|
+
* CARRIABLE_STATE_CARRIABLE_INTRO,
|
|
804
|
+
* CARRIABLE_STATE_CARRIABLE,
|
|
805
|
+
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_GROUND,
|
|
806
|
+
* CARRIABLE_STATE_CARRIED_BY_HUMAN,
|
|
807
|
+
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND,
|
|
808
|
+
* CARRIABLE_STATE_CARRIED_BY_MOUNT,
|
|
809
|
+
* CARRIABLE_STATE_BEING_PLACED_ON_MOUNT,
|
|
810
|
+
* CARRIABLE_STATE_BEING_PICKED_UP_FROM_MOUNT,
|
|
811
|
+
* CARRIABLE_STATE_BEING_CUT_FREE,
|
|
812
|
+
* CARRIABLE_STATE_BEING_PLACED_ON_GROUND_ESCAPE,
|
|
813
|
+
* CARRIABLE_STATE_BEING_PLACED_IN_VEHICLE
|
|
814
|
+
* };
|
|
751
815
|
*
|
|
752
816
|
* @returns
|
|
753
817
|
*/
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* @returns
|
|
757
|
-
*/
|
|
758
|
-
isOwnedByPersistenceSystem(): any;
|
|
759
|
-
/**
|
|
760
|
-
* @param animDict
|
|
761
|
-
* @param animName
|
|
762
|
-
* @param animType
|
|
763
|
-
* @returns
|
|
764
|
-
*/
|
|
765
|
-
isPlayingAnim(animDict: string | null, animName: string | null, animType: number): boolean;
|
|
818
|
+
getCarriableState(): number;
|
|
766
819
|
/**
|
|
767
|
-
*
|
|
820
|
+
* @param value
|
|
768
821
|
*/
|
|
769
|
-
|
|
822
|
+
setMaxHealth(value: number): void;
|
|
770
823
|
/**
|
|
824
|
+
* Params: p1 (probably animType) = 1, 0
|
|
825
|
+
*
|
|
826
|
+
* @param p1
|
|
771
827
|
* @returns
|
|
772
828
|
*/
|
|
773
|
-
|
|
829
|
+
isPlayingAnyAnim(p1: number): boolean;
|
|
774
830
|
/**
|
|
775
|
-
* @param
|
|
776
|
-
* @param animName
|
|
777
|
-
* @param speedMultiplier
|
|
831
|
+
* @param enabled
|
|
778
832
|
*/
|
|
779
|
-
|
|
780
|
-
unpinMapEntity(): void;
|
|
833
|
+
setLightsEnabled(enabled: boolean): void;
|
|
781
834
|
/**
|
|
782
|
-
*
|
|
835
|
+
* Offset values are relative to the entity. x = left/right
|
|
836
|
+
* y = forward/backward
|
|
837
|
+
* z = up/down
|
|
783
838
|
*
|
|
839
|
+
* @param offset
|
|
784
840
|
* @returns
|
|
785
841
|
*/
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* @returns
|
|
789
|
-
*/
|
|
790
|
-
isAttached(): boolean;
|
|
842
|
+
getOffsetFromInWorldCoords(offset: Vector3): Vector3;
|
|
791
843
|
/**
|
|
792
|
-
*
|
|
844
|
+
* 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
|
|
793
845
|
*
|
|
794
|
-
* @param
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
* @param
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
/**
|
|
846
|
+
* @param entity2
|
|
847
|
+
* @param xSize
|
|
848
|
+
* @param ySize
|
|
849
|
+
* @param zSize
|
|
850
|
+
* @param p5
|
|
851
|
+
* @param p6
|
|
852
|
+
* @param p7
|
|
802
853
|
* @returns
|
|
803
854
|
*/
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* @param p1
|
|
807
|
-
*/
|
|
808
|
-
N_0xA48E4801DEBDF7E4(p1: boolean): void;
|
|
855
|
+
isAtEntity(entity2: Entity, xSize: number, ySize: number, zSize: number, p5: boolean, p6: boolean, p7: number): boolean;
|
|
809
856
|
/**
|
|
810
857
|
* @param toggle
|
|
811
|
-
* @param keepPhysics
|
|
812
|
-
*/
|
|
813
|
-
setCompletelyDisableCollision(toggle: boolean, keepPhysics: boolean): void;
|
|
814
|
-
/**
|
|
815
|
-
* @param p1
|
|
816
|
-
*/
|
|
817
|
-
N_0xCDB682BB47C02F0A(p1: string | number): void;
|
|
818
|
-
/**
|
|
819
|
-
* @param volume
|
|
820
|
-
* @param p2
|
|
821
|
-
* @param p3
|
|
822
|
-
* @returns
|
|
823
|
-
*/
|
|
824
|
-
isInVolume(volume: number, p2: boolean, p3: number): boolean;
|
|
825
|
-
/**
|
|
826
|
-
* @returns rightVector; forwardVector; upVector; position
|
|
827
858
|
*/
|
|
828
|
-
|
|
859
|
+
setVisible(toggle: boolean): void;
|
|
829
860
|
/**
|
|
830
|
-
*
|
|
861
|
+
* Old name: _SET_ENTITY_CLEANUP_BY_ENGINE
|
|
862
|
+
*
|
|
863
|
+
* @param toggle
|
|
831
864
|
*/
|
|
832
|
-
|
|
865
|
+
setShouldFreezeWaitingOnCollision(toggle: boolean): void;
|
|
833
866
|
/**
|
|
834
|
-
*
|
|
867
|
+
* Note: this native was removed in 1232 but added back in 1311
|
|
868
|
+
* Old name: _GET_ENTITY_PROOFS
|
|
869
|
+
*
|
|
835
870
|
* @returns
|
|
836
871
|
*/
|
|
837
|
-
|
|
838
|
-
/**
|
|
839
|
-
* @param animDict
|
|
840
|
-
* @param animName
|
|
841
|
-
* @param time
|
|
842
|
-
*/
|
|
843
|
-
setAnimCurrentTime(animDict: string | null, animName: string | null, time: number): void;
|
|
872
|
+
getProofs(): number;
|
|
844
873
|
/**
|
|
845
|
-
*
|
|
846
|
-
*
|
|
847
|
-
* `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.
|
|
874
|
+
* skin - everything alpha except skin
|
|
875
|
+
* Set entity alpha level. Ranging from 0 to 255 but changes occur after every 20 percent (after every 51).
|
|
848
876
|
*
|
|
849
|
-
* @param
|
|
850
|
-
* @param
|
|
851
|
-
* @returns
|
|
877
|
+
* @param alphaLevel
|
|
878
|
+
* @param skin
|
|
852
879
|
*/
|
|
853
|
-
|
|
880
|
+
setAlpha(alphaLevel: number, skin: boolean): void;
|
|
854
881
|
/**
|
|
855
882
|
* @returns
|
|
856
883
|
*/
|
|
857
|
-
|
|
884
|
+
getThreatTier(): number;
|
|
858
885
|
/**
|
|
859
886
|
* Used in Script Function DUELING_DID_PLAYER_DISARM_OPPONENT
|
|
860
887
|
*
|
|
@@ -914,64 +941,68 @@ export declare class Entity implements IHandle {
|
|
|
914
941
|
*/
|
|
915
942
|
isAtCoord(pos: Vector3, xSize: number, ySize: number, zSize: number, p7: boolean, p8: boolean, p9: number): boolean;
|
|
916
943
|
/**
|
|
917
|
-
*
|
|
918
|
-
*
|
|
919
|
-
* @param value
|
|
944
|
+
* @returns
|
|
920
945
|
*/
|
|
921
|
-
|
|
946
|
+
isUpsidedown(): boolean;
|
|
922
947
|
/**
|
|
923
|
-
* @param
|
|
948
|
+
* @param p1
|
|
949
|
+
* @returns
|
|
924
950
|
*/
|
|
925
|
-
|
|
951
|
+
doesBelongToThisScript(p1: boolean): boolean;
|
|
926
952
|
/**
|
|
927
|
-
*
|
|
953
|
+
* Returns a hash of an entity's name. (Alternative Name: _GET_ENTITY_PROMPT_NAME_HASH)
|
|
954
|
+
*
|
|
955
|
+
* @returns
|
|
928
956
|
*/
|
|
929
|
-
|
|
957
|
+
getCarriableFromEntity(): number;
|
|
930
958
|
/**
|
|
931
|
-
* @
|
|
959
|
+
* @param toggle
|
|
960
|
+
* @param keepPhysics
|
|
932
961
|
*/
|
|
933
|
-
|
|
962
|
+
setCollision(toggle: boolean, keepPhysics: boolean): void;
|
|
934
963
|
/**
|
|
964
|
+
* @param p1
|
|
935
965
|
* @returns
|
|
936
966
|
*/
|
|
937
|
-
|
|
967
|
+
placeOnGroundProperly(p1: boolean): any;
|
|
938
968
|
/**
|
|
939
|
-
* @param pos
|
|
940
|
-
* @param atTop
|
|
941
|
-
* @param inWorldCoords
|
|
942
969
|
* @returns
|
|
943
970
|
*/
|
|
944
|
-
|
|
971
|
+
isInWater(): boolean;
|
|
945
972
|
/**
|
|
946
|
-
* @
|
|
947
|
-
* @returns
|
|
973
|
+
* @returns Returns `true` if the entity exists
|
|
948
974
|
*/
|
|
949
|
-
|
|
950
|
-
addTrackingTrails(): void;
|
|
975
|
+
doesExist(): boolean;
|
|
951
976
|
/**
|
|
952
|
-
* @
|
|
977
|
+
* @returns
|
|
953
978
|
*/
|
|
954
|
-
|
|
979
|
+
getAlpha(): number;
|
|
955
980
|
/**
|
|
956
|
-
*
|
|
981
|
+
* This native only works on `Ped` and `Object` entity types
|
|
982
|
+
*
|
|
983
|
+
* @param flagId Refer to [enum: eCarryingFlags]
|
|
984
|
+
* @returns
|
|
957
985
|
*/
|
|
958
|
-
|
|
986
|
+
getCarryingFlag(flagId: eCarryingFlags): number;
|
|
959
987
|
/**
|
|
960
988
|
* @param p1
|
|
961
|
-
* @returns
|
|
962
989
|
*/
|
|
963
|
-
|
|
990
|
+
forceAiAndAnimationUpdate(p1: boolean): void;
|
|
964
991
|
/**
|
|
965
|
-
*
|
|
966
|
-
*
|
|
967
|
-
* @param
|
|
968
|
-
* @
|
|
992
|
+
* Axis - Invert Axis Flags
|
|
993
|
+
*
|
|
994
|
+
* @param pos
|
|
995
|
+
* @param xAxis
|
|
996
|
+
* @param yAxis
|
|
997
|
+
* @param zAxis
|
|
969
998
|
*/
|
|
970
|
-
|
|
999
|
+
setCoordsNoOffset(pos: Vector3, xAxis: boolean, yAxis: boolean, zAxis: boolean): void;
|
|
971
1000
|
/**
|
|
1001
|
+
* Returns (CUR_HEALTH / MAX_HEALTH)
|
|
1002
|
+
*
|
|
972
1003
|
* @returns
|
|
973
1004
|
*/
|
|
974
|
-
|
|
1005
|
+
getHealthFloat(): number;
|
|
975
1006
|
/**
|
|
976
1007
|
* @param entity2
|
|
977
1008
|
* @param p2
|
|
@@ -1067,35 +1098,5 @@ export declare class Entity implements IHandle {
|
|
|
1067
1098
|
* @returns
|
|
1068
1099
|
*/
|
|
1069
1100
|
isUpright(angle: number): boolean;
|
|
1070
|
-
/**
|
|
1071
|
-
* Simply returns whatever is passed to it (Regardless of whether the handle is valid or not).
|
|
1072
|
-
*
|
|
1073
|
-
* @returns
|
|
1074
|
-
*/
|
|
1075
|
-
getVehicleIndexFromIndex(): Vehicle | null;
|
|
1076
|
-
/**
|
|
1077
|
-
* @returns
|
|
1078
|
-
*/
|
|
1079
|
-
isVisible(): boolean;
|
|
1080
|
-
/**
|
|
1081
|
-
* SET_ENTITY_LO*
|
|
1082
|
-
*
|
|
1083
|
-
* @param toggle
|
|
1084
|
-
*/
|
|
1085
|
-
N_0xFF9965C47FA404DA(toggle: boolean): void;
|
|
1086
|
-
/**
|
|
1087
|
-
* Valid indices: 0 - 3
|
|
1088
|
-
* Index 1 always returns a `hogtied` config, doesn't matter the entity.
|
|
1089
|
-
* It's for humans only and the ped must be resurrected first if it's dead.
|
|
1090
|
-
*
|
|
1091
|
-
* @param index
|
|
1092
|
-
* @returns
|
|
1093
|
-
*/
|
|
1094
|
-
getOptimalCarryConfig(index: number): string | number;
|
|
1095
|
-
setFadeIn(): void;
|
|
1096
|
-
/**
|
|
1097
|
-
* @returns
|
|
1098
|
-
*/
|
|
1099
|
-
hasBeenDamagedByAnyPed(): boolean;
|
|
1100
1101
|
}
|
|
1101
1102
|
//# sourceMappingURL=Entity.d.ts.map
|