Drakath Posted July 29, 2014 Posted July 29, 2014 Can someone help me to retrieve ONE random player who is in a colshape?
MTA Team botder Posted July 29, 2014 MTA Team Posted July 29, 2014 GetElementsWithinColShape GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
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