Mission scripting made easy with Moose (Mission Object Oriented Scripting Environment for DCS World).
Lesson 6- In this lesson we look at making a persistent scored bombing and strafe range. True basic Moose scripting with a really cool outcome.
How to create a scored Bombing and Strafe Range using Moose.
How to make the results persistent between mission loads.
Range layout and common placement errors.
Adding the range sound files to the mission..
A short test flight on the range.
A copy of our range script used in this lesson:
-- Moose Test Range
-- Strafe pits. Each pit can consist of multiple targets. Here we have two pits and each of the pits has two targets.
-- These are names of the corresponding units defined in the ME.
local strafepit={"Frio Strafe Pit Left", "Frio Strafe Pit Right"}
-- Table of bombing target names. Again these are the names of the corresponding units as defined in the ME.
local bombtarget={"Frio Bomb Target"}
-- Create a range object.
FrioRange=RANGE:New("Point Frio Weapons Range")
-- Distance between strafe target and foul line. You have to specify the names of the unit or static objects.
-- Note that this could also be done manually by simply measuring the distance between the target and the foul line in the ME.
FrioRange:GetFoullineDistance("Frio Strafe Pit Left", "Frio Foul Line")
-- Add strafe pits. Each pit (left and right) consists of two targets. Where "nil" is used as input, the default value is used.
FrioRange:AddStrafePit(strafepit, 3000, 300, nil, true, 20, fouldist)
-- Add Persistence
FrioRange:SetAutosaveOn()
-- Range refinements
FrioRange:TrackRocketsOFF()
-- Set Range Frequencys and initialise
FrioRange:SetInstructorRadio(275)
FrioRange:SetRangeControl(395)
-- Add bombing targets. A good hit is if the bomb falls less then 50 m from the target.
FrioRange:AddBombingTargets(bombtarget, 30)
-- Start range.
FrioRange:Start()
Assert Load your script while you are testing them out:
-- assert(loadfile("C:/Your/File/Location.lua"))()
476th Range Targets Mod - www.476vfighte...
Moose Website - flightcontrol-...
Samples - github.com/Fli...
Moose Discord - / discord
Негізгі бет Moose for DCS World - L6 Functional Range
Пікірлер: 17