Check if player is in vehicle?

Forgot that I made an account here since so long ago that it took a while to remember my details... and this is my first post.


The game I'm making is military-themed with bits and pieces of steampunk; there will be tanks (thanks to William Couillard's Land Vehicle script) and I have a tank actor. I want to know if there is a script call to check if the player is *riding* the vehicle, or the boat-turned-tank in this case, so I can include the tank actor in the party or exclude it if the player *is not riding* the vehicle.


Basically, I want to tie my tank actor to the vehicle using conditional branches and switches, if possible.


I've searched the forum and the rest of google, but none have my problem... or I used the wrong keywords.


Nevermind, got my answer.
You might start with a conditional branch.


On the third tab of the conditional command is the choice "Vehicle [pick one from the menu] is being driven".


If it is, then by definition the player is 'riding' the vehicle.


Then in your conditional do whatever you want to happen, and leave the Else branch empty, or whatever it is you want to happen then.


EDIT


While I was typing my reply you got your answer.


I was wondering if you would remove the strike through formatting.  That way, if anyone else in the future wants to know this, they can read it more easily.
You might start with a conditional branch.


On the third tab of the conditional command is the choice "Vehicle [pick one from the menu] is being driven".


If it is, then by definition the player is 'riding' the vehicle.


Then in your conditional do whatever you want to happen, and leave the Else branch empty, or whatever it is you want to happen then.

Haha, thanks. Been 2 years since I used VXA. Forgot literally everything.

Original thread: https://forums.rpgmakerweb.com/threads/check-if-player-is-in-vehicle.71748/