content/hifi-content/jimi/json/dvaScript3.js
2022-02-13 23:57:50 +01:00

22 lines
No EOL
609 B
JavaScript

(function() {
var dvaID = "{4d37c172-9315-4076-a091-a322d5428535}"; // ID number in edit entity
this.enterEntity = function(entityID) { // If you enter the zone, this will trigger
print("YAY I WALKED INTO THE CUBE");
// dva appears
var props = {
position: {x: -1719.8335, y: -1353.9106, z: -3154.4875}
};
Entities.editEntity(dvaID, props);
};
this.leaveEntity = function(entityID) { // If you leave the zone, this will trigger
var props = {
position: {x: -1719.8335, y: -1373.9106, z: -3154.4875}
};
Entities.editEntity(dvaID, props);
};
});