Drakath Posted July 29, 2014 Posted July 29, 2014 Can someone help me to retrieve ONE random player who is in a colshape?
Saml1er Posted July 30, 2014 Posted July 30, 2014 local col = createColSphere (0,0,0,10) local colPlayer local tab = getElementsWithinColShape(col,"player") if #tab ~= 0 then colPlayer = tab[math.random(1,#tab)] end
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now