Arran Posted December 28, 2010 Posted December 28, 2010 X, Y, Z = getElementPosition(getLocalPlayer()) col = createColCircle(X, Y, 150) outputDebugString(tostring(#getElementsWithinColShape(col, "player"))) Returns 0 when it should clearly return 1, the local player. But it does not until the player has moved, so I suppose we're going to have to add a timer on every temporary col shape check and hope they moved during that time?
Castillo Posted December 29, 2010 Posted December 29, 2010 i have tested it with a timer and when you move way the place where you created it outputs 1 test code: addCommandHandler("col", function () X, Y, Z = getElementPosition(getLocalPlayer()) col = createColCircle(X, Y, 150) setTimer(check,1000,0) end) function check() outputDebugString(tostring(#getElementsWithinColShape(col, "player"))) end San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
eAi Posted December 29, 2010 Posted December 29, 2010 That should work though, so please report it as a bug.
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