More work on follow and tanking

This commit is contained in:
Pax1601
2023-04-14 17:30:10 +02:00
parent b56f1ca547
commit 39698c66a3
15 changed files with 308 additions and 104 deletions

View File

@@ -117,6 +117,12 @@ export function attackUnit(ID: number, targetID: number) {
POST(data, () => { });
}
export function followUnit(ID: number, targetID: number) {
var command = { "ID": ID, "targetID": targetID };
var data = { "followUnit": command }
POST(data, () => { });
}
export function cloneUnit(ID: number, latlng: L.LatLng) {
var command = { "ID": ID, "location": latlng };
var data = { "cloneUnit": command }