mirror of
https://github.com/omltcat/dcs-lua-definitions.git
synced 2025-11-10 15:48:52 +00:00
Add Controller:setOption
Add missing event fields
This commit is contained in:
parent
389d056e60
commit
002cb2a919
@ -28,6 +28,17 @@ function Controller:resetTask() end
|
||||
---@param command table -- The command to be set.
|
||||
function Controller:setCommand(command) end
|
||||
|
||||
---Options are a pair of identifier and value.<br>
|
||||
---Behavior options are global parameters and will affect controller behavior in all tasks it performs.<br>
|
||||
---Options are executed immediately.<br>
|
||||
---For example, Rules of Engagement (ROE) are an option that can dictate whether or not a group is currently allowed to attack.<br>
|
||||
---This option can over-ride tasking to attack specific targets.<br>
|
||||
---Unlike Tasks and Commands, options are organized by id and value.<br>
|
||||
---See [Available Options](https://wiki.hoggitworld.com/view/DCS_func_setOption)
|
||||
---@param optionId enum -- The identifier of the option.
|
||||
---@param optionValue enum|boolean -- The value of the option.
|
||||
function Controller:setOption(optionId, optionValue) end
|
||||
|
||||
---Sets the controlled group to go the specified speed in meters per second.<br>
|
||||
---Optional boolean `keep` when set to true will maintain that speed on passing waypoints.<br>
|
||||
---If `keep` is not present or false, the controlled group will return to the speed as defined by their route.<br>
|
||||
|
||||
@ -97,6 +97,7 @@ country.id = {
|
||||
["KUWAIT"] = 71
|
||||
}
|
||||
|
||||
---@enum country.name
|
||||
country.name = {
|
||||
[1] = "UKRAINE",
|
||||
[2] = "USA",
|
||||
|
||||
@ -3,15 +3,21 @@
|
||||
---Object being called when a event handler is triggered.<br>
|
||||
---Depending on the event, the object may have different fields.<br>
|
||||
---@class event
|
||||
---@field comment string?
|
||||
---@field coalition coalition.side?
|
||||
---@field decs table?
|
||||
---@field groupID integer?
|
||||
---@field id integer
|
||||
---@field time number
|
||||
---@field idx integer?
|
||||
---@field initiator Unit?
|
||||
---@field target Unit?
|
||||
---@field place Airbase?
|
||||
---@field pos vec3?
|
||||
---@field subPlace integer?
|
||||
---@field text string?
|
||||
---@field time number
|
||||
---@field weapon Weapon?
|
||||
---@field weapon_name string?
|
||||
---@field target Unit?
|
||||
---@field comment string?
|
||||
---@field place Airbase?
|
||||
---@field subPlace integer?
|
||||
|
||||
---`vec2.x = vec3.x = north`<br>`vec2.y = vec3.z = east`
|
||||
---@class vec2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user