content/hifi-content/brosche/dev/flipperScript.js
2022-02-13 21:50:01 +01:00

33 lines
No EOL
603 B
JavaScript

// flipperScript.js
// by Mark Brosche
(function() {
var _this;
function Flipper() {
_this = this;
}
Flipper.prototype = {
preload: function(entityID) {
},
enterEntity: function() {
MyAvatar.orientation = {x: -1, y: 0, z: 0, w: 0}
MyAvatar.setAvatarScale(0.4);
},
leaveEntity: function() {
MyAvatar.orientation = {x: 0, y: 0, z: 0, w: 1}
MyAvatar.setAvatarScale(1);
},
unload: function() {
}
}
return new Flipper;
});