-
-
Notifications
You must be signed in to change notification settings - Fork 502
Closed as not planned
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
getElementsWithinRange should allow to ignore one element (just like in processLineOfSight & isLineOfSightClear), or table of elements.
Describe the solution you'd like
getElementsWithinRange ( float x, float y, float z, float range [, string elemType = "", int interior, int dimension, element/table ignoredElement = nil ] )e.g:
local playerX, playerY, playerZ = getElementPosition(localPlayer)
local playerInterior = getElementInterior(localPlayer)
local playerDimension = getElementDimension(localPlayer)
local searchRange = 30
local searchType = ""
local ignoredElement = localPlayer
local ignoredElements = {vehicleElement1, vehicleElement2, vehicleElement3}
getElementsWithinRange(playerX, playerY, playerZ, searchRange, searchType, playerInterior, playerDimension, ignoredElement) -- search for everything but localPlayer
getElementsWithinRange(playerX, playerY, playerZ, searchRange, searchType, playerInterior, playerDimension, ignoredElements) -- search for everything but exclude vehicleElement1, vehicleElement2, vehicleElement3Describe alternatives you've considered
Wrappers
Additional context
No response
Security Policy
- I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.
Fernando-A-Rocha and Dutchman101
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request