13 lines
No EOL
493 B
JavaScript
13 lines
No EOL
493 B
JavaScript
(function(){
|
|
this.replaceAvatar = function(entityID) {
|
|
MyAvatar.useFullAvatarURL(Entities.getEntityProperties(entityID,"modelURL").modelURL);
|
|
};
|
|
this.replaceAvatarByMouse = function(entityID, mouseEvent) {
|
|
if (mouseEvent.isLeftButton) {
|
|
this.replaceAvatar(entityID);
|
|
}
|
|
};
|
|
this.clickDownOnEntity = this.replaceAvatarByMouse;
|
|
this.startFarTrigger = this.replaceAvatar;
|
|
this.startNearTrigger = this.replaceAvatar;
|
|
}) |