pepsi18 Posted December 15, 2015 Share Posted December 15, 2015 hi i am trying to do some areas anti zombie every so often change positions but sometimes collide areas and I want to change positions not collide function setRadarAreaPosition(area, posx, posy) for _, radararea in ipairs(getElementsByType("radararea")) do if isInsideRadarArea( radararea, posx, posy) and radararea ~= area then setRadarAreaPosition(area, math.random(-3000, 3000), math.random(-3000, 3000)) else setElementPosition( area, posx, posy ) end end end Link to comment
Best-Killer Posted December 15, 2015 Share Posted December 15, 2015 Error ?? use /debugscritp 3 Link to comment
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