赞 | 25 |
VIP | 0 |
好人卡 | 0 |
积分 | 44 |
经验 | 0 |
最后登录 | 2024-11-12 |
在线时间 | 550 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 4362
- 在线时间
- 550 小时
- 注册时间
- 2018-11-12
- 帖子
- 114
|
var _game_Player_getOnVehicle = Game_Player.prototype.getOnVehicle;
Game_Player.prototype.getOnVehicle = function() {
this.OldMoveSpeed = this._moveSpeed;
_game_Player_getOnVehicle.call(this);
};
Game_Player.prototype.getOffVehicle = function() {
if (this.vehicle().isLandOk(this.x, this.y, this.direction())) {
if (this.isInAirship()) {
this.setDirection(2);
}
this._followers.synchronize(this.x, this.y, this.direction());
this.vehicle().getOff();
if (!this.isInAirship()) {
this.forceMoveForward();
this.setTransparent(false);
}
this._vehicleGettingOff = true;
this.setMoveSpeed(this.OldMoveSpeed);
this.setThrough(false);
this.makeEncounterCount();
this.gatherFollowers();
}
return this._vehicleGettingOff;
};
//将上述代码复制粘贴到任意插件最下面,即可实现楼主的想法。希望对你有所帮助。 |
|