Jump to content

How to get players in marker


Recommended Posts

You can use the following function to check is the element within marker;


And use this,if you want to get all elements in a marker;

function getElementsWithinMarker(marker) 
    if (not isElement(marker) or getElementType(marker) ~= "marker") then 
        return false 
    local markerColShape = getElementColShape(marker) 
    local elements = getElementsWithinColShape(markerColShape) 
    return elements 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...