mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 14:38:43 +02:00
atp
This commit is contained in:
parent
195543558e
commit
d9e66db6f6
1 changed files with 4 additions and 3 deletions
|
@ -59,7 +59,7 @@
|
|||
releaseHold: function() {
|
||||
_this.stopPouring();
|
||||
Script.setTimeout(function() {
|
||||
Entities.deleteEntity(_this.waterEffect);
|
||||
Entities.deleteEntity(_this.waterEffect);
|
||||
}, 2000);
|
||||
},
|
||||
|
||||
|
@ -224,9 +224,10 @@
|
|||
_this.position = Entities.getEntityProperties(_this.entityID, "position").position;
|
||||
// Wait a a bit for spout to spawn for case where preload is initial spawn, then save it
|
||||
Script.setTimeout(function() {
|
||||
var entities = Entities.findEntities(_this.position, 1);
|
||||
var entities = Entities.findEntities(_this.position, 2);
|
||||
entities.forEach(function(entity) {
|
||||
var name = Entities.getEntityProperties(entity, "name").name;
|
||||
print('HOME FOUND AN ENTITY CALLED:: ' + name)
|
||||
if (name === _this.WATER_SPOUT_NAME) {
|
||||
_this.waterSpout = entity;
|
||||
}
|
||||
|
@ -249,4 +250,4 @@
|
|||
|
||||
// entity scripts always need to return a newly constructed object of our type
|
||||
return new WaterSpout();
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue