Fix spawn table visibility
This commit is contained in:
parent
78ac272931
commit
d052c897e6
2 changed files with 9 additions and 5 deletions
|
|
@ -84,9 +84,13 @@
|
|||
seatCount: seatCount,
|
||||
}),
|
||||
grabbable: false,
|
||||
locked: true,
|
||||
locked: false,
|
||||
});
|
||||
|
||||
Script.setTimeout(function() {
|
||||
Entities.editEntity(tableID, { locked: true });
|
||||
}, 2000);
|
||||
|
||||
print("[pokerAdmin] spawned table entity " + tableID + " for " + pokerID);
|
||||
|
||||
// Spawn seat pads as children of the table entity
|
||||
|
|
|
|||
|
|
@ -99,9 +99,9 @@
|
|||
if (isSeated) {
|
||||
MyAvatar.endSit(getSeatPosition(), getSeatRotation());
|
||||
isSeated = false;
|
||||
Entities.editEntity(entityID, { locked: false });
|
||||
Entities.editEntity(_entityID, { locked: false });
|
||||
Entities.editEntity(_entityID, { visible: true });
|
||||
Entities.editEntity(entityID, { locked: true });
|
||||
Entities.editEntity(_entityID, { locked: true });
|
||||
Controller.actionEvent.disconnect(onActionEvent);
|
||||
Messages.sendMessage("poker:seat", JSON.stringify({
|
||||
event: "stand",
|
||||
|
|
@ -140,9 +140,9 @@
|
|||
if (xhr.status === 200) {
|
||||
MyAvatar.beginSit(getSeatPosition(), getSeatRotation());
|
||||
isSeated = true;
|
||||
Entities.editEntity(entityID, { locked: false });
|
||||
Entities.editEntity(_entityID, { locked: false });
|
||||
Entities.editEntity(_entityID, { visible: false });
|
||||
Entities.editEntity(entityID, { locked: true });
|
||||
Entities.editEntity(_entityID, { locked: true });
|
||||
Controller.actionEvent.connect(onActionEvent);
|
||||
Messages.sendMessage("poker:seat", JSON.stringify({
|
||||
event: "sit",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue