💬

Community answer

Collected from the ACE community Discord archive around 2024-07-16. It may be informal or outdated — anyone can edit this page to improve it.

EGP parentToCursor alternative

💬 GeneralUpdated 2 days ago•0 views
Use Cursor = Egp:egpCursor(User) to get the cursor position, then check e.g. if(Cursor:distance(Egp:egpPos(I)) < 25) to see if the cursor is over the element - …

EGP:parentToCursor(E) isn't working - how do I detect the cursor over an EGP element instead?

Use Cursor = Egp:egpCursor(User) to get the cursor position, then check e.g. if(Cursor:distance(Egp:egpPos(I)) < 25) to see if the cursor is over the element - that pattern is used for buttons.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.