mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
Styling formating and Rebuild attempt
This commit is contained in:
parent
1d8be2aeaa
commit
9fbde41dc4
1 changed files with 50 additions and 49 deletions
|
@ -1465,7 +1465,7 @@ function MyController(hand) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (entityProps.hasOwnProperty("cloneable")/*&& props.locked*/) {
|
||||
if (entityProps.hasOwnProperty("cloneable")) {
|
||||
return entityProps.cloneable;
|
||||
}
|
||||
return false;
|
||||
|
@ -2397,7 +2397,7 @@ function MyController(hand) {
|
|||
var userData = JSON.parse(grabbedProperties.userData);
|
||||
var grabInfo = userData.grabbableKey;
|
||||
if (grabInfo && grabInfo.cloneable) {
|
||||
|
||||
// Check if
|
||||
var worldEntities = Entities.findEntitiesInBox(Vec3.subtract(MyAvatar.position, {x:25,y:25, z:25}), {x:50, y: 50, z: 50})
|
||||
var count = 0;
|
||||
worldEntities.forEach(function(item) {
|
||||
|
@ -2436,6 +2436,7 @@ function MyController(hand) {
|
|||
this.grabbedEntity = Entities.addEntity(cProperties);
|
||||
grabbedProperties = Entities.getEntityProperties(this.grabbedEntity);
|
||||
var _this = this;
|
||||
|
||||
Script.setTimeout(function () {
|
||||
// This is needed to wait for the grabbed entity to have been instanciated.
|
||||
_this.callEntityMethodOnGrabbed("startEquip");
|
||||
|
|
Loading…
Reference in a new issue