r3-custom-code/vinuf6amoi.js

31 lines
876 B
JavaScript

if (!this.entityLoaded) {
return;
}
if (!this.initialized) {
this.throwerParticleEngine = this.entityLoaded.throwerParticleEngine;
this.beforeRender = this.entityLoaded.beforeRender;
this.mouseMove = this.entityLoaded.mouseMove;
// this.renderer = this.entityLoaded.renderer;
this.initialized = true;
}
this.beforeRender.mouseIsDown = false;
this.mouseMove.mouseIsDown = false;
this.throwerParticleEngine.templateParticle.speed = 5;
this.throwerParticleEngine.particlesPerSecond = 5;
this.throwerParticleEngine.updateInstance('particlesPerSecond');
this.throwerParticleEngine.templateParticle.positionOffset.x = 0.3;
this.throwerParticleEngine.templateParticle.positionOffset.y = 0.3;
this.throwerParticleEngine.templateParticle.scale.x = 3;
R3.Event.Emit(
R3.Event.STOP_AUDIO,
{
name : 'Audio - Flamethrower'
}
);
return null;
//@ sourceURL=mouseUp.js