💬

Community answer

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

isValid doesn't apply to particles

🌙 LuaUpdated 2 days ago•0 views
Particles aren't entities - they're either null or not, so isValid returns false even when the object exists; guard with `if particle then` instead of isValid, …

Is the isValid function bugged on particles

Particles aren't entities - they're either null or not, so isValid returns false even when the object exists; guard with `if particle then` instead of isValid, and :destroy() errors on already-destroyed particles.

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.