| @@ -167,7 +167,7 @@ Script.include("/~/system/libraries/cloneEntityUtils.js"); · 166 unmodified lines |
| 167 | this.isReady = function (controllerData) { | 167 | this.isReady = function (controllerData) { |
| 168 | this.targetEntityID = null; | 168 | this.targetEntityID = null; |
| 169 | | 169 | |
| 170 | if (controllerData.triggerValues[this.hand] < TRIGGER_OFF_VALUE) { | 170 | if (controllerData.triggerValues[this.hand] < TRIGGER_OFF_VALUE && controllerData.secondaryValues[this.hand] < TRIGGER_OFF_VALUE) { |
| 171 | return makeRunningValues(false, [], []); | 171 | return makeRunningValues(false, [], []); |
| 172 | } | 172 | } |
| 173 | | 173 | |
| @@ -186,7 +186,7 @@ Script.include("/~/system/libraries/cloneEntityUtils.js"); · 12 unmodified lines |
| 186 | | 186 | |
| 187 | this.run = function (controllerData) { | 187 | this.run = function (controllerData) { |
| 188 | if (this.actionID) { | 188 | if (this.actionID) { |
| 189 | if (controllerData.triggerClicks[this.hand] === 0) { | 189 | if (controllerData.triggerClicks[this.hand] === 0 && controllerData.secondaryValues[this.hand] === 0) { |
| 190 | this.endNearGrabAction(); | 190 | this.endNearGrabAction(); |
| 191 | return makeRunningValues(false, [], []); | 191 | return makeRunningValues(false, [], []); |
| 192 | } | 192 | } |
| @@ -204,7 +204,7 @@ Script.include("/~/system/libraries/cloneEntityUtils.js"); · 11 unmodified lines |
| 204 | | 204 | |
| 205 | var targetProps = this.getTargetProps(controllerData); | 205 | var targetProps = this.getTargetProps(controllerData); |
| 206 | if (targetProps) { | 206 | if (targetProps) { |
| 207 | if (controllerData.triggerClicks[this.hand] === 1) { | 207 | if (controllerData.triggerClicks[this.hand] === 1 || controllerData.secondaryValues[this.hand] === 1) { |
| 208 | // switch to grabbing | 208 | // switch to grabbing |
| 209 | var targetCloneable = entityIsCloneable(targetProps); | 209 | var targetCloneable = entityIsCloneable(targetProps); |
| 210 | if (targetCloneable) { | 210 | if (targetCloneable) { |