mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 06:52:32 +02:00
fix path issue
This commit is contained in:
parent
febe25511b
commit
bdabc21d57
1 changed files with 9 additions and 5 deletions
|
@ -11,11 +11,15 @@
|
|||
/* globals SCRIPT_IMPORT_PROPERTIES */
|
||||
|
||||
var MODELS_PATH = 'http://hifi-content.s3.amazonaws.com/DomainContent/Welcome%20Area/production/models/boxingRing/';
|
||||
var SCRIPT_PATH = this.isCleanupAndSpawnScript ?
|
||||
'http://s3-us-west-1.amazonaws.com/hifi-content/thoys/dev/2017/elBoppo/' :
|
||||
Script.resolvePath('');
|
||||
var WANT_CLEANUP_ON_SCRIPT_ENDING = false;
|
||||
|
||||
var getScriptPath = function(localPath) {
|
||||
if (this.isCleanupAndSpawnScript) {
|
||||
return 'http://s3-us-west-1.amazonaws.com/hifi-content/thoys/dev/2017/elBoppo/' + localPath;
|
||||
}
|
||||
return Script.resolvePath(localPath);
|
||||
};
|
||||
|
||||
var getCreatePosition = function() {
|
||||
// can either return position defined by resetScript or avatar position
|
||||
if (this.isCleanupAndSpawnScript) {
|
||||
|
@ -40,7 +44,7 @@ var boxingRing = Entities.addEntity({
|
|||
},
|
||||
position: getCreatePosition(),
|
||||
scriptTimestamp: 1489612158459,
|
||||
serverScripts: SCRIPT_PATH + 'boppoServer.js',
|
||||
serverScripts: getScriptPath('boppoServer.js'),
|
||||
shapeType: 'static-mesh',
|
||||
type: 'Model',
|
||||
userData: JSON.stringify({
|
||||
|
@ -181,7 +185,7 @@ var boppoEntities = [
|
|||
y: -1.52587890625e-05,
|
||||
z: -1.52587890625e-05
|
||||
},
|
||||
script: SCRIPT_PATH + 'clownGloveDispenser.js',
|
||||
script: getScriptPath('clownGloveDispenser.js'),
|
||||
shapeType: 'box',
|
||||
type: 'Zone',
|
||||
visible: false
|
||||
|
|
Loading…
Reference in a new issue