Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Create group of different ship types AND helos?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Create group of different ship types AND helos? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Create group of different ship types AND helos? - 12/31/2020 12:52:40 AM   
hellfish6


Posts: 843
Joined: 6/15/2008
Status: offline
Hi. I'm trying to make a quick battle that lets you pit 3 ships vs 3 other ships, along with a single helo for those ships that carried them. I'm looking through the tutorials and searching and I'm also realizing that my scripting skills have severely atrophied over the years... any help? None of the existing QBs mix types in their groups, and the groups I see are all aircraft.

I'm using pre-defined groups (so like option A is ship1 and helo+loadout, ship2 and helo+loadout, and ship3 with a helo+loadout, option B is a different set of ships, etc.)

How to I write a lua that spawns the three ships and their embarked helos into a group, within about 5nm of each other?

Thanks.

_____________________________

Post #: 1
RE: Create group of different ship types AND helos? - 1/4/2021 8:38:32 PM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
There are easier ways to do it in a very down and dirty way but here (Air_Surface ASUW Packages_demo.zip attached) is something similar to what you wanted I had from awhile back that I tweaked a little for your purpose to ensure proper formation related stuff. Basically it's a QB setup for 3 vs 3 surface ship warfare.

It uses a package definition system to define what gets added, and how, obviously you'll need to change the packages to the dbid and loadouts you want for you and the enemy (blue uses sceneGlobals.UnitPackages1 and Red sceneGlobals.UnitPackages2. The demo units currently marked up are just that. You can find those tables near the top of the script. I'd say it's self explanatory but it's probably not even with the comments. lol But basically each package contains 1 or more unit entries and each unit can have sub units (aircraft), along with other data that controls how things get generated. Generally don't worry about lat\lon for "units" as they all get replaced during generation when using formation option.

Unzip the contained folder into your CMOInstallFolder\Quickbattle folder.


Attachment (1)

< Message edited by KnightHawk75 -- 1/4/2021 8:39:33 PM >

(in reply to hellfish6)
Post #: 2
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Create group of different ship types AND helos? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.844