mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
work with far trigger
This commit is contained in:
parent
3c9b9aef4f
commit
708cce64b6
1 changed files with 11 additions and 1 deletions
|
@ -18,11 +18,22 @@
|
|||
busy: false,
|
||||
preload: function(entityID) {
|
||||
this.entityID = entityID;
|
||||
Entities.editEntity(entityID, {
|
||||
userData: JSON.stringify({
|
||||
grabbableKey: {
|
||||
grabbable: false,
|
||||
wantsTrigger: true
|
||||
}
|
||||
})
|
||||
});
|
||||
Script.update.connect(this.update);
|
||||
},
|
||||
clickReleaseOnEntity: function() {
|
||||
this.createSupplies();
|
||||
},
|
||||
startFarTrigger: function() {
|
||||
this.createSupplies();
|
||||
},
|
||||
update: function() {
|
||||
if (_this.busy === true) {
|
||||
return;
|
||||
|
@ -45,7 +56,6 @@
|
|||
}, 2000)
|
||||
}
|
||||
},
|
||||
|
||||
createSupplies: function() {
|
||||
var myProperties = Entities.getEntityProperties(this.entityID);
|
||||
|
||||
|
|
Loading…
Reference in a new issue