Hi cameni!
// cabin camera move
this.register_axis("car/weapons/turret", {minval:0, maxval:0.45, center:2, vel:2, acc:2}, function(v) {
var cond = this.get_camera_mode() == 0;
if (cond) {
this.player.moveCamPos.y = v;
this.player.moveCam = 1;
this.log_inf("action start");
}
}, 0);
// cabin camera strafe
this.register_axis("car/weapons/mantlet", {minval:-0.3, maxval:0.3, center:2, vel:2, acc:2}, function(v) {
var cond = this.get_camera_mode() == 0;
if (cond) {
this.player.moveCamPos.x = v;
this.player.moveCam = 1;
this.log_inf("action start");
}
}, 0);
Events are activated only once when the object is initialized. Most of these events are not caused, keystrokes "Up", "Down", "Left", "Right", no effect.