Porting E2's changed() to Starfall
π» Expression 2β’Updated 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.