self vs explicit entity in method calls
🌙 Lua•Updated 2 days ago•0 views
With colon calls the target is passed as the first arg (self); for plain fields use entity.pos = pos - the distinction only matters inside method definitions.
Is 'self' the entity when calling obj:method()?
With colon calls the target is passed as the first arg (self); for plain fields use entity.pos = pos - the distinction only matters inside method definitions.