Sure it is. But not with torkscript.If you just want to stop them from entering vehicles, you could package the function and make it not mount them to the vehicle when they jump on it.
If not torquescript, what can I use?