-
Notifications
You must be signed in to change notification settings - Fork 1
Added Disposition table to global tables #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 0.3.0 | ||
| 0.3.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,150 @@ | ||
| globals: | ||
| # Github Issue: #11 | ||
| # Descriptions and Parameters provided by @WirtLegs | ||
| Disposition: | ||
| kind: singleton | ||
| description: "Provides functions for manipulating positions, terrain queries, and random number generation within the DCS World. **Warning:** This class is not formally documented by ED and descriptions and params may be incorrect." | ||
| environment: ["MissionScripting"] | ||
| addedVersion: "0.0.0" #Unknown | ||
| static: | ||
| DriftRoute: | ||
| description: "Unknown use case, possibly related to route drift or movement." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: pos1 | ||
| type: Vec3 | ||
| description: "First position vector." | ||
| - name: pos2 | ||
| type: Vec3 | ||
| description: "Second position vector." | ||
| - name: coalitionId | ||
| type: coalition.side | ||
| description: "Coalition side enumeration value." | ||
| returns: table | ||
| getElipsSideZones: | ||
| description: "Returns zones around runway strips in an elliptical pattern." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: numAreas | ||
| type: number | ||
| description: "Unknown" | ||
| - name: numPositions | ||
| type: number | ||
| description: "Unknown" | ||
| - name: perim | ||
| type: table | ||
| description: "Unknown" | ||
| - name: degrees | ||
| type: number | ||
| description: "Unknown" | ||
| - name: radiusRatio | ||
| type: number | ||
| description: "Unknown" | ||
| returns: table | ||
| getPointHeight: | ||
| description: "Returns the terrain height at the specified position in the DCS World coordinate system? See: land.getHeight()" | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: pos | ||
| type: Vec3 | ||
| description: "Position vector in the DCS World coordinate system." | ||
| returns: number | ||
| getPointWater: | ||
| description: "Checks if water exists at the specified position within given parameters? See: land.getSurfaceType()" | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: pos | ||
| type: Vec3 | ||
| description: "3D Position" | ||
| - name: a | ||
| type: number | ||
| description: "Unknown" | ||
| - name: b | ||
| type: number | ||
| description: "Unknown" | ||
| returns: boolean | ||
| getRandom: | ||
| description: "Generates a random number within the specified range." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: isFloat | ||
| type: boolean | ||
| description: "If true, returns a floating-point number; otherwise, returns an integer." | ||
| - name: min | ||
| type: number | ||
| description: "Minimum value of the random range." | ||
| - name: max | ||
| type: number | ||
| description: "Maximum value of the random range." | ||
| returns: number | ||
| getRandomIn: | ||
| description: "Unknown function, likely related to random selection within a specified range or container." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: [] | ||
| returns: any | ||
| getRandomSort: | ||
| description: "Randomly shuffles the elements of the input table." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: t | ||
| type: table | ||
| description: "Table to be randomly shuffled." | ||
| returns: table | ||
| getRouteAwayWater: | ||
| description: "Unknown function" | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: thresholdPos | ||
| type: Vec3 | ||
| description: "Unknown" | ||
| - name: pos | ||
| type: Vec3 | ||
| description: "Unknown" | ||
| - name: a | ||
| type: number | ||
| description: "Unknown" | ||
| - name: b | ||
| type: number | ||
| description: "Unknown" | ||
| returns: boolean | ||
| getRunwayPerimetr: | ||
|
YoloWingPixie marked this conversation as resolved.
|
||
| description: "Returns the perimeter of a runway defined by runway data? See: airbase.getRunways()" | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: runway | ||
| type: table | ||
| description: "Runway data table obtained from airbase:getRunways()." | ||
| returns: table | ||
| getSimpleZones: | ||
| description: "Finds clear positions within an area for placing units. Assumed behavior." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: pos | ||
| type: Vec3 | ||
| description: "Center position vector for the search area." | ||
| - name: radius | ||
| type: number | ||
| description: "Radius of the search area." | ||
| - name: posRadius | ||
| type: number | ||
| description: "Required clear radius around each position." | ||
| - name: numPositions | ||
| type: number | ||
| description: "Number of positions to find." | ||
| returns: table | ||
| getThresholdFourZones: | ||
| description: "Returns zones along runway edges based on the provided perimeter." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: | ||
| - name: numPositions | ||
| type: number | ||
| description: "Number of positions to generate." | ||
| - name: perim | ||
| type: table | ||
| description: "Perimeter table defining the runway edges." | ||
| returns: table | ||
| setMarkerPoint: | ||
| description: "Unknown function, likely related to setting a marker at a specific point. May be related to world and trigger functions." | ||
| addedVersion: "0.0.0" #Unknown | ||
| params: [] | ||
| returns: any | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.