💬

Community answer

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

_G with string keys for dynamic globals

🖼️ RenderingUpdated 2 days ago•0 views
_G["holo"..num] = holograms.create(...) - _G allows string-keyed globals so holo12:setColor() etc. work on dynamically named objects.

How to create a global variable with a dynamic/string name

_G["holo"..num] = holograms.create(...) - _G allows string-keyed globals so holo12:setColor() etc. work on dynamically named objects.

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.