I had a look at another mod, in control.lua, to see how it work and this is how the callback is called:
Code: Select all
on_tick = function(object)
local control = object.meta.entity.get_control_behavior()
I can find documentation for the entity but not the 'object' or 'meta'.
So what class is the 'object' ???