mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 07:19:05 +02:00
more namechanges in JS scripts
This commit is contained in:
parent
29a52bf0ba
commit
e763c055b3
3 changed files with 3 additions and 3 deletions
|
@ -170,7 +170,7 @@ function fire(side, value) {
|
||||||
Script.setTimeout(function() {
|
Script.setTimeout(function() {
|
||||||
createEntityHitEffect(intersection.intersection);
|
createEntityHitEffect(intersection.intersection);
|
||||||
if (shootAnything && intersection.properties.dynamic === 1) {
|
if (shootAnything && intersection.properties.dynamic === 1) {
|
||||||
// Any entity with collisions will move can be shot
|
// Any dynamic entity can be shot
|
||||||
Entities.editEntity(intersection.entityID, {
|
Entities.editEntity(intersection.entityID, {
|
||||||
velocity: Vec3.multiply(shotDirection, GUN_FORCE)
|
velocity: Vec3.multiply(shotDirection, GUN_FORCE)
|
||||||
});
|
});
|
||||||
|
|
|
@ -201,7 +201,7 @@ EntityPropertyDialogBox = (function () {
|
||||||
index++;
|
index++;
|
||||||
array.push({ label: "Ignore for Collisions:", type: "checkbox", value: properties.ignoreForCollisions });
|
array.push({ label: "Ignore for Collisions:", type: "checkbox", value: properties.ignoreForCollisions });
|
||||||
index++;
|
index++;
|
||||||
array.push({ label: "Collisions Will Move:", type: "checkbox", value: properties.dynamic });
|
array.push({ label: "Dynamic:", type: "checkbox", value: properties.dynamic });
|
||||||
index++;
|
index++;
|
||||||
array.push({ label: "Collision Sound URL:", value: properties.collisionSoundURL });
|
array.push({ label: "Collision Sound URL:", value: properties.collisionSoundURL });
|
||||||
index++;
|
index++;
|
||||||
|
|
|
@ -154,7 +154,7 @@
|
||||||
}, randFloat(10, 200));
|
}, randFloat(10, 200));
|
||||||
}
|
}
|
||||||
if (intersection.properties.dynamic === 1) {
|
if (intersection.properties.dynamic === 1) {
|
||||||
// Any entity with collisions will move can be shot
|
// Any dynaic entity can be shot
|
||||||
Entities.editEntity(intersection.entityID, {
|
Entities.editEntity(intersection.entityID, {
|
||||||
velocity: Vec3.multiply(this.firingDirection, this.bulletForce)
|
velocity: Vec3.multiply(this.firingDirection, this.bulletForce)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue