mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Converted clone function to pure lua
This commit is contained in:
@@ -198,8 +198,8 @@ export function followUnit(ID: number, targetID: number, offset: { "x": number,
|
||||
POST(data, () => { });
|
||||
}
|
||||
|
||||
export function cloneUnit(ID: number, latlng: LatLng) {
|
||||
var command = { "ID": ID, "location": latlng };
|
||||
export function cloneUnits(units: {ID: number, location: LatLng}[]) {
|
||||
var command = { "units": units };
|
||||
var data = { "cloneUnit": command }
|
||||
POST(data, () => { });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user