Help needed: Script call to specifically enable/disable mouse click 'Get On/Off' Vehicle

Hi everyone,

Been sifting the forum support for something that was similar to this script but found none.
Anyone able to share the script line specifically for

- Enable/Disable Mouse Click 'Get On/Off' Vehicle (mouseclick OK is fine too)

Appreciate if anyone can help me out!
By default clicking on a vehicle just tells the game to move there, same as clicking on an event or an empty tile. When the player stops moving, the game does some checks. One of these is a "touch action" check, which splits into "here" (same tile), "there" (1 tile in front), or "over counter" (2 tiles in front). If the touch-move destination matches one of these tiles, it'll try an appropriate action: trigger event or get on/off vehicle.

You'd need a plugin to change this. Examples (save as a .js file and import as a plugin):
Spoiler: plugin code - disable map movement via touch controls
JavaScript:
/*:
 * @target MZ
 * @plugindesc Disable map movement via touch controls.
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override!
Game_Temp.prototype.setDestination = function() {};
Spoiler: plugin code - disable event/vehicle interactions via touch controls
JavaScript:
/*:
 * @target MZ
 * @plugindesc Disable event/vehicle interactions via touch controls.
 * @help Free to use and/or modify for any project, no credit required.
 */
// Override!
Game_Player.prototype.triggerTouchAction = function() {};
I'd suggest the first one: disable touch movement. That also disables event/vehicle interactions.

(If you're already using a plugin to change how touch controls are handled, then these options might not work for you.)
Thank you very much Caethyril.
This indeed can solve my problems.
Great! Happy RPG Making~ 👋
This will also solve a problem in my one map.

Original thread: https://forums.rpgmakerweb.com/threads/help-needed-script-call-to-specifically-enable-disable-mouse-click-get-on-off-vehicle.153211/