Initial Commit: Custom Code - BK Flame - Entity Loaded (mccud019kb.js)

beta.r3js.org
-=yb4f3410 1973-11-29 22:33:09 +01:00
parent 01dfd0c16b
commit 83d83c2b71
1 changed files with 41 additions and 0 deletions

41
mccud019kb.js Normal file
View File

@ -0,0 +1,41 @@
if (this.parentEntity === data.entity) {
console.log('my entity loaded :)');
} else {
return;
}
this.enemies = [];
/**
* Min and max spawn time is in seconds
*/
GameLib.D3.CustomCode.MIN_SPAWN_TIME = 1;
GameLib.D3.CustomCode.MAX_SPAWN_TIME = 4;
this.beforeRender = GameLib.EntityManager.Instance.findComponentById('dywmtohrda');
//this.materialRusted = GameLib.EntityManager.Instance.findComponentById('0mrd2dx5np');
GameLib.Event.Emit(
GameLib.Event.GET_GRAPHICS_IMPLEMENTATION,
null,
function(graphics) {
this.graphics = graphics
}.bind(this)
);
if (
!this.beforeRender
) {
console.error('components not available at runtime', this);
}
/**
* Updates the displacement scale of materialRusted
*/
//this.updateMaterialRusted = function(totalTime) {
// this.materialRusted.displacementScale = Math.sin(totalTime);
// this.materialRusted.updateInstance();
//}
return null;
//# sourceURL=entityLoaded.js