From 1d7cf9d96fb2c5559c6aa7a3984d10417d4f512a Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Tue, 31 Oct 2017 12:56:28 +0100 Subject: [PATCH] Initial Commit: Custom Code - BK Flame - Mouse Wheel (ot5qabk55a.js) --- ot5qabk55a.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ot5qabk55a.js diff --git a/ot5qabk55a.js b/ot5qabk55a.js new file mode 100644 index 0000000..5e872b3 --- /dev/null +++ b/ot5qabk55a.js @@ -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 \ No newline at end of file