content/hifi-content/DomainContent/Home/cuckooClock/Script/cuckooClockEntityScript.js
2022-02-13 22:49:05 +01:00

29 lines
No EOL
598 B
JavaScript

(function() {
var _this;
var d = new Date();
var h = d.getHours();
h = h % 12;
MyEntity = function() {
_this = this;
};
MyEntity.prototype = {
preload: function(entityID) {
_this.entityID = entityID; // this.animation.isRunning = true;
Entities.editEntity(_this.entityID, {animation:{running:true}});
print("PRELOAD ENTITY SCRIPT!!!")
},
};
// entity scripts always need to return a newly constructed object of our type
return new MyEntity();
});