getOwnerOfExplosionInAngledArea
GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA0x14BA4BA137AF6CECThe GTA V native GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA of the FIRE namespace, as LS:MP client scripts call it: the global function getOwnerOfExplosionInAngledArea, in JavaScript and in Lua.
getOwnerOfExplosionInAngledArea(
explosionType: number,
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number,
radius: number
): EntitygetOwnerOfExplosionInAngledArea(
explosionType: integer,
x1: number,
y1: number,
z1: number,
x2: number,
y2: number,
z2: number,
radius: number
): EntityUsage
JavaScript
const entity = getOwnerOfExplosionInAngledArea(explosionType, x1, y1, z1, x2, y2, z2, radius);Lua
local entity = getOwnerOfExplosionInAngledArea(explosionType, x1, y1, z1, x2, y2, z2, radius)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
const entity = getOwnerOfExplosionInAngledArea(explosionType, pos1, pos2, radius);Lua · with vectors
local entity = getOwnerOfExplosionInAngledArea(explosionType, pos1, pos2, radius)Parameters
| Parameter | Type | JavaScript | Lua | Description |
|---|---|---|---|---|
explosionType | int | number | integer | See addExplosion. |
x1 | float | number | number | |
y1 | float | number | number | |
z1 | float | number | number | |
x2 | float | number | number | |
y2 | float | number | number | |
z2 | float | number | number | |
radius | float | number | number |
Returns
Entity JavaScript number, Lua integerGame handle of an entity: a ped, a vehicle or an object. Not an LS:MP netId. Convert one with lsmp.getEntityFromNetId.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns a handle to the first entity within the a circle spawned inside the 2 points from a radius.
Reference
- Namespace
- Fire FIRE
- In the game
Entity GET_OWNER_OF_EXPLOSION_IN_ANGLED_AREA(int explosionType, float x1, float y1, float z1, float x2, float y2, float z2, float radius)- Hash
0x14BA4BA137AF6CEC- Formerly
_GET_PED_INSIDE_EXPLOSION_AREA_GET_ENTITY_INSIDE_EXPLOSION_AREA