How do I make a plug?
But in hl2 you can't take them back out, that's why I used "Manic Mechanic" as an example. So how do I make them so they can be taken out also?
[edit]
I found a tutorial covering removal also
Valve made that system ridiculously complicated and expensive. Even more so when a plug can be pulled out, and reinserted from any end of the plug itself.
I've found that an easier way to deal with plugs is saying "fuck it, make a plug-in bro aka new entity" Sadly as you cannot do this in Portal the next best thing would be to use "OnUser" inputs and outputs to get the plugs jacked-in status incase you do want them to come out. However I haver never thought about what happens if a plug has both ends going through a portal, which allows it to essentially cover mass distances from one socket to another.
This could pose a serious problem. If you close the portal allowing the plug to go between socket to socket some crazy shit will likely ensue. You will have to take EXTRA caution with this one.
Msleeper's and Sandvich's explanations are very close to how I made it. If there's still something you can't figure out, have a look at the source vmf for Manic Mechanic. (It comes with the download.)