I've tried:
%target.schedule(6999, dismount());
%target.schedule(6999, unmount());
on both the mount target and the player target with no luck. Is there something else I could try?
Edit:
Or is there something else I can try to force a player to dismount? Killing the vehicle doesn't do it. Example:
%target.schedule(7000, damage, %obj, %obj.getPosition(), 10000, $DamageType::Lava);
%target.schedule(7000, finalExplosion());