mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
updates
This commit is contained in:
parent
1c188a270d
commit
7579102b1a
1 changed files with 19 additions and 1 deletions
|
@ -125,6 +125,18 @@
|
|||
Entities.deleteEntity(this.arrow);
|
||||
},
|
||||
|
||||
startNearGrab:function(entityID, args){
|
||||
_this.startEquip(entityID, args);
|
||||
},
|
||||
|
||||
continueNearGrab:function(entityID, args){
|
||||
_this.continueEquip(entityID, args);
|
||||
},
|
||||
|
||||
releaseGrab:function(){
|
||||
_this.releaseEquip();
|
||||
},
|
||||
|
||||
startEquip: function(entityID, args) {
|
||||
this.hand = args[0];
|
||||
avatarID = args[1];
|
||||
|
@ -137,6 +149,9 @@
|
|||
var data = getEntityCustomData('grabbableKey', this.entityID, {});
|
||||
data.grabbable = false;
|
||||
setEntityCustomData('grabbableKey', this.entityID, data);
|
||||
Entities.editEntity(_this.entityID, {
|
||||
collidesWith: ""
|
||||
})
|
||||
|
||||
},
|
||||
continueEquip: function(entityID, args) {
|
||||
|
@ -181,6 +196,9 @@
|
|||
Entities.deleteEntity(this.arrow);
|
||||
this.aiming = false;
|
||||
this.hasArrowNotched = false;
|
||||
Entities.editEntity(_this.entityID, {
|
||||
collidesWith: "static,dynamic,kinematic,otherAvatar,myAvatar"
|
||||
})
|
||||
},
|
||||
|
||||
createArrow: function() {
|
||||
|
@ -526,4 +544,4 @@
|
|||
};
|
||||
|
||||
return new Bow();
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue