This does work, though I'd advise against actually trying it, lest the DM decides to retaliate (if there is an Evil Overlord with some form of army, you could well find yourself on the recieving end of several orc railguns!) Although, if you do decide to try it, consider using craft...