diff --git a/examples/weapons/pistol.js b/examples/exterminatorGame/pistol.js similarity index 99% rename from examples/weapons/pistol.js rename to examples/exterminatorGame/pistol.js index e3fb5c8a5e..f509e890c1 100644 --- a/examples/weapons/pistol.js +++ b/examples/exterminatorGame/pistol.js @@ -12,6 +12,7 @@ // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // + Script.include("../libraries/utils.js"); Script.include("../libraries/constants.js"); @@ -166,7 +167,9 @@ function fire(side, value) { velocity: Vec3.multiply(shotDirection, GUN_FORCE) }); createEntityHitEffect(intersection.intersection); - } else { + } + + if (intersection.properties.name === "rat") { } //Attempt to call entity method's shot method diff --git a/examples/weapons/rat.js b/examples/exterminatorGame/rat.js similarity index 100% rename from examples/weapons/rat.js rename to examples/exterminatorGame/rat.js diff --git a/examples/weapons/ratSpawner.js b/examples/exterminatorGame/ratSpawner.js similarity index 100% rename from examples/weapons/ratSpawner.js rename to examples/exterminatorGame/ratSpawner.js diff --git a/examples/weapons/socketTest.js b/examples/exterminatorGame/socketTest.js similarity index 100% rename from examples/weapons/socketTest.js rename to examples/exterminatorGame/socketTest.js