mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
15 lines
346 B
Python
15 lines
346 B
Python
import pickle
|
|
|
|
from dcs.mission import Mission
|
|
from dcs.terrain import PersianGulf
|
|
|
|
m = Mission()
|
|
m.load_file("tools/cau_terrain.miz")
|
|
|
|
landmap = []
|
|
for plane_group in m.country("USA").plane_group:
|
|
landmap.append([(x.position.x, x.position.y) for x in plane_group.points])
|
|
|
|
with open("./caulandmap.p", "wb") as f:
|
|
pickle.dump(landmap, f)
|