mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 09:25:12 +02:00
set whichhand to null on release
This commit is contained in:
parent
7f841b3828
commit
6131875f67
1 changed files with 9 additions and 4 deletions
|
@ -82,10 +82,15 @@
|
|||
|
||||
releaseGrab: function() {
|
||||
var _t = this;
|
||||
this.canShootTimeout = Script.setTimeout(function() {
|
||||
_t.canShoot = false;
|
||||
_t.whichHand=null;
|
||||
}, 250)
|
||||
|
||||
if (this.whichHand === this.hand) {
|
||||
_t.whichHand = null;
|
||||
this.canShootTimeout = Script.setTimeout(function() {
|
||||
_t.canShoot = false;
|
||||
|
||||
}, 250)
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
checkTriggerPressure: function(gunHand) {
|
||||
|
|
Loading…
Reference in a new issue