Initial Commit: Custom Code - BK Flame - Mouse Wheel (ot5qabk55a.js)
parent
b75e22905f
commit
1d7cf9d96f
|
@ -0,0 +1,13 @@
|
|||
if (GameLib.Utils.UndefinedOrNull(this.camera)) {
|
||||
this.camera = GameLib.EntityManager.Instance.findComponentById('yv62w8sx9r');
|
||||
}
|
||||
|
||||
if (data.event.deltaY < 0 && this.camera.fov > 30) {
|
||||
this.camera.fov -= 30;
|
||||
this.camera.updateInstance();
|
||||
} else if (data.event.deltaY > 0 && this.camera.fov < 90) {
|
||||
this.camera.fov += 30;
|
||||
this.camera.updateInstance();
|
||||
}
|
||||
|
||||
//@ sourceURL=mouseWheel.js
|
Loading…
Reference in New Issue