You would place a thin trigger out to sea somewhere and move it into place. SetPos works on triggers, I presume setDir does too though I don't actually know. With onMapSingleClick you could do what you describe though it would require some nifty scripting and a dash of trigonometry.
In other words, try CoC first. ;D