IS_EXPLOSION_IN_SPHERE
Returns true if an explosion of explosionType is within radius of the given point.
Signature
BOOL IS_EXPLOSION_IN_SPHERE(int explosionType, float x, float y, float z, float radius); // 0xD62DD846D82CBB90 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | explosionType | int |
| 2 | x | float |
| 3 | y | float |
| 4 | z | float |
| 5 | radius | float |
Facts
| Name | IS_EXPLOSION_IN_SPHERE |
|---|---|
| Hash | 0xD62DD846D82CBB90 |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0xD62DD846D82CBB90, -- IS_EXPLOSION_IN_SPHERE
0, -- int explosionType
0.0, -- float x
0.0, -- float y
0.0, -- float z
0.0 -- float radius
)
if result then
-- ...
end// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const result = Citizen.invokeNative("0xD62DD846D82CBB90", // IS_EXPLOSION_IN_SPHERE
0, // int explosionType
0.0, // float x
0.0, // float y
0.0, // float z
0.0, // float radius
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0xD62DD846D82CBB90, // IS_EXPLOSION_IN_SPHERE
0, // int explosionType
0.0f, // float x
0.0f, // float y
0.0f, // float z
0.0f // float radius
);Related FIRE natives
- IS_EXPLOSION_IN_ANGLED_AREA
- IS_EXPLOSION_IN_AREA
- IS_EXPLOSION_ACTIVE_IN_AREA
- _IS_EXPLOSION_IN_VOLUME
- GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA
- IS_ENTITY_ON_FIRE
- _ADD_EXPLOSION_WITH_DAMAGE_CAUSER
- _ADD_EXPLOSION_WITH_USER_VFX_AND_DAMAGE_CAUSER
- _GET_CLOSEST_FIRE_POS_IN_VOLUME
- _IS_ENTITY_BEING_DAMAGED_BY_FIRE
- _IS_ENTITY_CONSUMED_BY_FIRE
- _IS_PED_SHOCKING_EVENT_ACTIVE
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.