stilesw
Posts: 1497
Joined: 6/26/2014 From: Hansville, WA, USA Status: offline
|
DEMANDS!? You will get a MUCH more favorable response from this community if you couch things as requests or possible enhancements rather than as a demand. The circle definition is quite useful for many things - no navigation & exclusion zones, patrol areas and so forth. If the reference points are not highlighted then they are not much of a distraction - and you can make them invisible. You can actually create areas with a different number of reference points and name them using Lua. Here is some sample code I've used with some modifications from the original creator. -- Create reference points around an object on the world map -- Written by Baloogan -- Modified draw_circle by Yautay -- Modified by Wayne Stiles (2016-11-14) --------------------------------------------------- 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 = "Coalition" Unit_Name = "XcenterX" Radius = 25 Number_of_Points = 12 First_Pt = 00 Last_Pt = 11 Point_Names = "AEW2-" --------------------------------------------------- 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) Thewood1 is absolutely correct, this should be posted in the request thread. Personally, I do not respond well to demands and never have.
< Message edited by stilesw -- 3/4/2018 11:08:48 PM >
|