set_filter implementation
Posted: Fri Aug 12, 2016 11:20 am
I'm trying to implement a rail wagon that is restricted to a certain type of ore but I'm a noob at lua.
I'm messing with the stainless steal wagon mod just as a base, and tried to insert the line close to the example on the Wiki.
in the entities.lua script which, as far as I understand, is where this line should go.
However i'm getting a 12: attempt to call field 'set_filter' (a nill value).
Anyone care to shed some light on it for me? Thank you
I'm messing with the stainless steal wagon mod just as a base, and tried to insert the line close to the example on the Wiki.
Code: Select all
wagon.set_filter(2, 'iron-ore')
However i'm getting a 12: attempt to call field 'set_filter' (a nill value).
Anyone care to shed some light on it for me? Thank you