michaelm75au -> RE: Trying to make SAR Scenario (7/18/2016 3:34:14 AM)
|
quote:
ORIGINAL: Halsey1945 A bit off topic. However, what are the following scripts? I found them in the script console. And, haven't found anything in the forums, wikis, or documentation about them. VP_GetSide(table) VP_GetUnit(table) World_GetCircleFromPoint(table) World_GetElevation(table) 1. VP_GetSide(table) Gives a pointer to the 'side' object. Only use I have seen to date is for the change to the Nav Zones as shown in 1.11 SR1 mySide = VP_GetSide({Name="US"}) myZone = mySide.getnonavzone("AAW Zone 1") [Alternative for excl. zone: myZone = mySide.getexclusionzone("Forbidden Zone 1")] myZone.isactive = "True"/"False" 2.VP_GetUnit(table) I expect that this is similar except it lets you address a 'unit' to get the 'side'. But you could use ScenEdit_GetUnit() and use the 'side' value of it to feed into VP_GetSide(). 3.World_GetElevation(table) Gives you altitude of the location specified unit=ScenEdit_GetUnit({Name="Cactus #2"});print(unit); world = World_GetElevation({latitude=unit.latitude, longitude=unit.longitude});print(world) -- altitude of the point Cactus #2 is flying over 4.World_GetCircleFromPoint(table) As it says, it will give you a set of 45 points around a location at a specific radius (in NM) world = World_GetCircleFromPoint({latitude=unit.latitude, longitude=unit.longitude, radius = 100});print(world) for i=1,45 do ScenEdit_AddReferencePoint({ side='LZs', lat=world.Latitude, lon=world.Longitude, name=i, highlighted="yes"}) end
|
|
|
|