mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 21:00:39 +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() {
|
releaseGrab: function() {
|
||||||
var _t = this;
|
var _t = this;
|
||||||
this.canShootTimeout = Script.setTimeout(function() {
|
|
||||||
_t.canShoot = false;
|
if (this.whichHand === this.hand) {
|
||||||
_t.whichHand=null;
|
_t.whichHand = null;
|
||||||
}, 250)
|
this.canShootTimeout = Script.setTimeout(function() {
|
||||||
|
_t.canShoot = false;
|
||||||
|
|
||||||
|
}, 250)
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
checkTriggerPressure: function(gunHand) {
|
checkTriggerPressure: function(gunHand) {
|
||||||
|
|
Loading…
Reference in a new issue