content/hifi-content/patrickmanalich/seek-laser-test/zone-script.js
2022-02-14 02:04:11 +01:00

25 lines
No EOL
501 B
JavaScript

"use strict";
(function () { // BEGIN LOCAL_SCOPE
var _this = this;
var blocksChannel = "blocks-channel";
_this.preload = function(entityID) {
_this.entityID = entityID;
}
_this.enterEntity = function(entityID) {
print("entered zone");
Messages.sendMessage(blocksChannel, "startup");
}
_this.leaveEntity = function(entityID) {
print("left zone");
Messages.sendMessage(blocksChannel, "shutdown");
}
_this.unload = function(entityID) {
}
})