Browsing Wiremod's section
← Back to ACE
πŸ’¬

Community answer

Collected from the ACE community Discord archive around 2018-07-21. It may be informal or outdated β€” anyone can edit this page to improve it. Original discussion

Porting E2's changed() to Starfall

πŸ’» Expression 2Updated 2 days agoβ€’0 views
E2's changed() has no direct SF equivalent - people write a small lib using a metatable __newindex/__index pair that records the previous value and reports whet…

How to implement an E2-style changed() variable watcher in Starfall

E2's changed() has no direct SF equivalent - people write a small lib using a metatable __newindex/__index pair that records the previous value and reports whether it changed since last check.

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.