We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getElementsWithinRange should allow to ignore one element (just like in processLineOfSight & isLineOfSightClear), or table of elements.
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, vehicleElement3
Wrappers
No response
The text was updated successfully, but these errors were encountered:
getElementsWithinRange
Successfully merging a pull request may close this issue.
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
e.g:
Describe alternatives you've considered
Wrappers
Additional context
No response
Security Policy
The text was updated successfully, but these errors were encountered: