Does anyone know how to equip an AI unit created in the mission editor with custom weapons?

I’ve seen people apply custom weapons that are available to normal player aircrafts to AI units created in the mission editor, so I know there’s some way to do this, but I don’t know how. If anyone knows, I’d appreciate some help.