How to set the filter propertie?
Posted: Wed May 29, 2013 11:31 am
Hello again,
many thanks for the help and the answer in the past.
Does anyone know how to set the filter for the smart-inserter and (my problem) the logistic-container in requester-mode?
I tried the following ... but does not work
Error message= Key.Filter doesnt exist! ..yep .. i see.
I have tried different ways to find out the existing keys.
Thought, if i send the entity to console, i can find some information, so i use:
in all combinations - nothing works... pfffff - iI'm so sad
thankful for every tip
greetings Frank
thx Frank
many thanks for the help and the answer in the past.
Does anyone know how to set the filter for the smart-inserter and (my problem) the logistic-container in requester-mode?
I tried the following ... but does not work
Code: Select all
game.onevent(defines.events.onbuiltentity, function(event)
if event.createdentity.name == "foo-logistic-container" then
event.createdentity.filter[1]="coal"
-- event.createdentity.filter="coal"
end
end)
I have tried different ways to find out the existing keys.
Thought, if i send the entity to console, i can find some information, so i use:
Code: Select all
game.player.print(serpent.block(event.createdentity))
game.player.print(tostring(event.createdentity) )
game.player.print(table.concat(event.createdentity) )
game.player.print(serpent.block(entity))
game.player.print(tostring(game.entity) )
....
thankful for every tip
greetings Frank
thx Frank