From fdfdba5d2d36a40b7d81b0dc5ffce216884ab106 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Mon, 23 Mar 2015 17:46:57 +0100 Subject: [PATCH] Couple tweaks --- examples/entityScripts/lightController.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/entityScripts/lightController.js b/examples/entityScripts/lightController.js index 981099377c..dd1a50cd84 100644 --- a/examples/entityScripts/lightController.js +++ b/examples/entityScripts/lightController.js @@ -79,7 +79,7 @@ lightDefaultProperties: { type: "Light", position: { x: 0, y: 0, z: 0 }, - dimensions: { x: 2, y: 2, z: 2 }, + dimensions: { x: 5, y: 5, z: 5 }, isSpotlight: false, color: { red: 255, green: 48, blue: 0 }, diffuseColor: { red: 255, green: 255, blue: 255 }, @@ -172,6 +172,9 @@ }; this.clickReleaseOnEntity = function(entityID, mouseEvent) { + this.entityID = entityID; + this.maybeDownloadSound(); + if (mouseEvent.isLeftButton) { this.updateLightID(); this.maybeMoveLight();