first working version of the skynetiads plugin

This commit is contained in:
David Pierron
2020-10-22 18:39:54 +02:00
parent fd969020af
commit e024da277b
18 changed files with 10042 additions and 35 deletions

View File

@@ -8,16 +8,23 @@ from dcs.unit import Vehicle
class GroupGenerator():
def __init__(self, game, ground_object):
def __init__(self, game, ground_object, faction = None):
self.game = game
self.go = ground_object
self.position = ground_object.position
self.heading = random.randint(0, 359)
self.vg = unitgroup.VehicleGroup(self.game.next_group_id(), self.go.group_identifier)
groupNamePrefix = self.getGroupNamePrefix(faction)
self.vg = unitgroup.VehicleGroup(self.game.next_group_id(), groupNamePrefix + self.go.group_identifier)
wp = self.vg.add_waypoint(self.position, PointAction.OffRoad, 0)
wp.ETA_locked = True
def getGroupNamePrefix(self, faction):
if not faction:
return ""
return ""
def generate(self):
raise NotImplementedError