I have this code:
And ive found that using getmetatable
on turretControls returns TurretController. But is there a way I can get turretControls from TurretController instead of the other way around?
I have this code:
And ive found that using getmetatable
on turretControls returns TurretController. But is there a way I can get turretControls from TurretController instead of the other way around?
Not really, getmetatable()
does not have an inverse operation, but logically, if you can call getmetatable()
, you already have access to the original table.
^ This. Alternatively, you can attach the original table to the metatable.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.