Everything about this code works, save the KillObject function.
Code: Select all
OnObjectKill(
function(object, killer)
local name = GetEntityName(object)
print("OnObjectKill():",name)
if name == "panel" then
ShowMessageText("mods.mymap.arefree")
KillObject("fence1")
KillObject("fence2")
end
end
)Help is greatly appreciated.



