mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
trigger changes and message debugging
This commit is contained in:
parent
2add609387
commit
50c1786e9b
2 changed files with 1 additions and 4 deletions
|
@ -1228,6 +1228,7 @@ function update() {
|
|||
Messages.subscribe('Hifi-Beam-Disabler');
|
||||
|
||||
handleBeamDisablerMessages = function(channel, message, sender) {
|
||||
print('GOT MESSAGE:::'+message)
|
||||
handToDisable = message;
|
||||
if (message === 'left') {
|
||||
handToDisable = 1;
|
||||
|
|
|
@ -441,17 +441,13 @@
|
|||
if (this.initialHand === 'left') {
|
||||
triggerLookup=1;
|
||||
this.getStringHandPosition = MyAvatar.getRightPalmPosition;
|
||||
// this.stringTriggerAction = Controller.findAction("RIGHT_HAND_CLICK");
|
||||
} else if (this.initialHand === 'right') {
|
||||
this.getStringHandPosition = MyAvatar.getLeftPalmPosition;
|
||||
triggerLookup=0;
|
||||
// this.stringTriggerAction = Controller.findAction("LEFT_HAND_CLICK");
|
||||
}
|
||||
|
||||
this.triggerValue = Controller.getValue(TRIGGER_CONTROLS[triggerLookup]);
|
||||
|
||||
// this.triggerValue = Controller.getActionValue(this.stringTriggerAction);
|
||||
print('TRIGGER VALUE:::' + this.triggerValue);
|
||||
|
||||
if (this.triggerValue < DRAW_STRING_THRESHOLD && this.stringDrawn === true) {
|
||||
// firing the arrow
|
||||
|
|
Loading…
Reference in a new issue