mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-22 21:45:04 +02:00
tabs
This commit is contained in:
parent
4a37c4ba18
commit
666653dd96
1 changed files with 5 additions and 5 deletions
|
@ -385,11 +385,11 @@ distanceBetweenPointAndEntityBoundingBox = function(point, entityProps) {
|
||||||
};
|
};
|
||||||
|
|
||||||
entityIsEquipped = function(entityID) {
|
entityIsEquipped = function(entityID) {
|
||||||
var rightEquipEntity = getEnabledModuleByName("RightEquipEntity");
|
var rightEquipEntity = getEnabledModuleByName("RightEquipEntity");
|
||||||
var leftEquipEntity = getEnabledModuleByName("LeftEquipEntity");
|
var leftEquipEntity = getEnabledModuleByName("LeftEquipEntity");
|
||||||
var equippedInRightHand = rightEquipEntity ? rightEquipEntity.targetEntityID === entityID : false;
|
var equippedInRightHand = rightEquipEntity ? rightEquipEntity.targetEntityID === entityID : false;
|
||||||
var equippedInLeftHand = leftEquipEntity ? leftEquipEntity.targetEntityID === entityID : false;
|
var equippedInLeftHand = leftEquipEntity ? leftEquipEntity.targetEntityID === entityID : false;
|
||||||
return equippedInRightHand || equippedInLeftHand;
|
return equippedInRightHand || equippedInLeftHand;
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof module !== 'undefined') {
|
if (typeof module !== 'undefined') {
|
||||||
|
|
Loading…
Reference in a new issue