18 lines
514 B
JavaScript
18 lines
514 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 appear
|
|
|
|
};
|
|
Entities.editEntity(dvaID, {visible: true});
|
|
};
|
|
|
|
this.leaveEntity = function(entityID) { // If you leave the zone, this will trigger
|
|
print("YAY I LEFT THE CUBE");
|
|
// dva disappears
|
|
};
|
|
Entities.editEntity(dvaID, {visible: false});
|
|
|
|
});
|