I'm trying to use the "Event filter" in paticular "LuaPlayerBuiltEntityEventFilters" on the event "on_built_entity", but I have try to declare a filter without understand if is right because I can't find on web a complete example about how use it. Could anyone give an example to me? Like, I want that the event is trigger only when the entity with name A or B is placed.
I try something like:
Code: Select all
filter =
{
{
name="A"
},
{
name="B"
}
}
...
script.on_event(eventA, functionA, filter)
I haven't find nothing on documentation or forum that talk about this.
Thank to all in advance for the answers.