Differential D676 Diff 2706 ps/trunk/binaries/data/mods/public/simulation/ai/common-api/entitycollection.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/simulation/ai/common-api/entitycollection.js
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
m.EntityCollection.prototype.move = function(x, z, queued) | m.EntityCollection.prototype.move = function(x, z, queued) | ||||
{ | { | ||||
queued = queued || false; | queued = queued || false; | ||||
Engine.PostCommand(PlayerID,{"type": "walk", "entities": this.toIdArray(), "x": x, "z": z, "queued": queued}); | Engine.PostCommand(PlayerID,{"type": "walk", "entities": this.toIdArray(), "x": x, "z": z, "queued": queued}); | ||||
return this; | return this; | ||||
}; | }; | ||||
m.EntityCollection.prototype.moveToRange = function(x, z, min, max, queued) | |||||
{ | |||||
queued = queued || false; | |||||
Engine.PostCommand(PlayerID,{"type": "walk-to-range", "entities": this.toIdArray(), "x": x, "z": z, "min": min, "max": max, "queued": queued }); | |||||
return this; | |||||
}; | |||||
m.EntityCollection.prototype.attackMove = function(x, z, targetClasses, queued) | m.EntityCollection.prototype.attackMove = function(x, z, targetClasses, queued) | ||||
{ | { | ||||
queued = queued || false; | queued = queued || false; | ||||
Engine.PostCommand(PlayerID,{"type": "attack-walk", "entities": this.toIdArray(), "x": x, "z": z, "targetClasses": targetClasses, "queued": queued}); | Engine.PostCommand(PlayerID,{"type": "attack-walk", "entities": this.toIdArray(), "x": x, "z": z, "targetClasses": targetClasses, "queued": queued}); | ||||
return this; | return this; | ||||
}; | }; | ||||
m.EntityCollection.prototype.moveIndiv = function(x, z, queued) | m.EntityCollection.prototype.moveIndiv = function(x, z, queued) | ||||
▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator