Does not seem to work like other entities. I tried:
Code: Select all
function On_Built(event)
local entity = event.created_entity
if entity and entity.name == "bi-floor" then
....
Code: Select all
function On_Remove(event)
local entity = event.entity
if entity and entity.name == "bi-floor" then
....