-- Smart Object MCP Integration -- Author: Patrick Ferland -- Revisions -- New Script: P.Ferland 07/11/08 Trigger attach() local w = GetWorld() local st = w.singleton_tracker if (st == nil) then return end local mcp = st['mcp'] if (mcp == nil) then return end SendTo(mcp, 'mcp_register_command', 0, 'configure ' .. self.id, 'Configure ' .. self.type, self.spriteId) end Trigger destroyed() local w = GetWorld() local st = w.singleton_tracker if (st == nil) then return end local mcp = st['mcp'] if (mcp == nil) then return end SendTo(mcp, 'mcp_unregister_command', 0, 'configure ' .. self.id) end