Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Define Prosecution Area: circle. How?

 
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 >> Define Prosecution Area: circle. How? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Define Prosecution Area: circle. How? - 6/30/2020 7:36:28 AM   
apoll

 

Posts: 54
Joined: 6/20/2007
Status: offline
In the latest Kushan air warfare tutorial, he defines a prosecution area for an OCA mission as a circle. Some sort of, I think, right click and a menu came up with circle or rectangle. He chose a circle, defined it, and used a circular prosecution area. How did he do that? I use the Define area drop down menu at the top but it only allows me to place 4 rectangular Reference points. How did he get to that context menu where he had a choice of circle or rectangle? Or was that some sort of other define area menu?

Grateful advice.

Apoll
Post #: 1
RE: Define Prosecution Area: circle. How? - 6/30/2020 9:39:21 AM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
Cntrl + Right click - should give you the option

_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/

(in reply to apoll)
Post #: 2
RE: Define Prosecution Area: circle. How? - 6/30/2020 12:51:21 PM   
stww2

 

Posts: 219
Joined: 5/23/2017
Status: offline
I never even realized that was a thing-I guess you learn something new every day!

(in reply to Gunner98)
Post #: 3
RE: Define Prosecution Area: circle. How? - 7/3/2020 10:30:43 AM   
apoll

 

Posts: 54
Joined: 6/20/2007
Status: offline
Tks! That's very handy way of doing things.


(in reply to stww2)
Post #: 4
RE: Define Prosecution Area: circle. How? - 7/3/2020 12:46:57 PM   
DWReese

 

Posts: 1824
Joined: 3/21/2014
From: Miami, Florida
Status: offline
One tip that I can give you is this:

That generated circle creates LOTS of reference points, and it uses lots of memory, which it slows down the machine.

You likely don't NEED all of those reference points to create the area that you want.

So, eliminate some of them, keeping the basic shape of the area. Perhaps, after editing, your area will look more like an octagon rather than a circle, and it will use a lot less memory.

It's just a tip.

Doug

(in reply to apoll)
Post #: 5
RE: Define Prosecution Area: circle. How? - 7/3/2020 2:40:20 PM   
stilesw


Posts: 1497
Joined: 6/26/2014
From: Hansville, WA, USA
Status: offline
DWReese is right on. The below LUA code was created before the "reference point circle" feature was added to CMO/CMANO.

I don't recall who created it but it lets you assign any number of reference points around a given unit and, allows you to name them as you like. I've found that 12 works very well and have used this code extensively.

-WS

-----------------------------------------------------------------------------------

function draw_circle(a, b, First_Pt, Last_Pt, Num_Pts, txt) -- ([lat,lon], First_Pt, Last_Pt, Number_of_Pointsts, name)
if txt == nil then
txt = ""
end
lat1 = a.latitude
lon1 = a.longitude
r = b / 60
-----
for i = First_Pt, Last_Pt do -- Consecutive integer numbers
th = 2 * math.pi * i / Num_Pts
rlat = lat1 + r * math.cos(th)
rlon = lon1 + r * math.sin(th) / math.cos(math.rad(lat1))
ScenEdit_AddReferencePoint({
side = 'PlayerSide',
lat = rlat,
lon = rlon,
name = txt..i,
highlighted = "yes"})
end
end
---------------------------------------------------
Owner = "Appropriate Side Name"
Unit_Name = "Appropriate Unit Name"
Radius =1
Number_of_Points = 12
First_Pt = 00
Last_Pt = 11
Point_Names = "AAW Patrol Zone-"
---------------------------------------------------
local unit = ScenEdit_GetUnit({side=Owner, name=Unit_Name})
draw_circle({latitude=unit.latitude, longitude=unit.longitude}, Radius, First_Pt, Last_Pt, Number_of_Points, Point_Names)
---------------------------------------------------

_____________________________

“There is no limit to what a man can do so long as he does not care a straw who gets the credit for it.”

Charles Edward Montague, English novelist and essayist
~Disenchantment, ch. 15 (1922)

(in reply to DWReese)
Post #: 6
RE: Define Prosecution Area: circle. How? - 7/3/2020 3:13:29 PM   
SeaQueen


Posts: 1451
Joined: 4/14/2007
From: Washington D.C.
Status: offline
quote:

ORIGINAL: stww2
I never even realized that was a thing-I guess you learn something new every day!


It's one of the best kept secrets of Command.



(in reply to stww2)
Post #: 7
RE: Define Prosecution Area: circle. How? - 7/3/2020 5:03:20 PM   
Kushan04


Posts: 683
Joined: 6/29/2005
Status: offline

quote:

ORIGINAL: stww2

I never even realized that was a thing-I guess you learn something new every day!


Just to clarify a little bit, ctrl + right click directly on a unit will bring up the unit orders menu, ctrl + right click on an empty area will bring up the reference point options.

_____________________________


(in reply to stww2)
Post #: 8
RE: Define Prosecution Area: circle. How? - 7/4/2020 11:22:50 AM   
apoll

 

Posts: 54
Joined: 6/20/2007
Status: offline
Tks all.

(in reply to Kushan04)
Post #: 9
RE: Define Prosecution Area: circle. How? - 7/8/2020 4:58:42 PM   
parmenio

 

Posts: 266
Joined: 8/6/2009
From: United Kingdom
Status: offline
Here's an alternative version of the script that reflects its use in the tutorial. Create a reference point called "PA-1" where you want the centre of the Prosecution Area. Change the radius (mine is at 20nm for no particular reason) and run it. "PA-1" is removed at the end.

function Draw_circle(a, b, First_Pt, Last_Pt, Num_Pts, txt) -- ([lat,lon], First_Pt, Last_Pt, Number_of_Points, name)
if txt == nil then
txt = ""
end
lat1 = a.latitude
lon1 = a.longitude
r = b / 60
-----
for i = First_Pt, Last_Pt do -- Consecutive integer numbers
th = 2 * math.pi * i / Num_Pts
rlat = lat1 + r * math.cos(th)
rlon = lon1 + r * math.sin(th) / math.cos(math.rad(lat1))
ScenEdit_AddReferencePoint(
{
side = "PlayerSide",
lat = rlat,
lon = rlon,
name = txt .. i,
highlighted = "yes"
}
)
end
end
---------------------------------------------------
Radius = 20
Number_of_Points = 12
First_Pt = 00
Last_Pt = 11
Point_Names = "AAW Patrol Zone-"
---------------------------------------------------
local points = ScenEdit_GetReferencePoints({side="PlayerSide", area={"PA-1"}})
Draw_circle(
{latitude = points[1].latitude, longitude = points[1].longitude},
Radius,
First_Pt,
Last_Pt,
Number_of_Points,
Point_Names
)
ScenEdit_DeleteReferencePoint({side="PlayerSide", name="PA-1"})


< Message edited by parmenio -- 7/8/2020 4:59:35 PM >

(in reply to apoll)
Post #: 10
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Define Prosecution Area: circle. How? 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.906