Click to shoot the catapult. Aim with the mouse. Takes a second to load.
I took a script from @Basilgarrad , but heavily modified it, so I'm not sure why I'm mentioning it.