Skip to content
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

Faire tirer un groupe via la commande -shell #206

Open
The-Reaper opened this issue Apr 13, 2023 · 0 comments
Open

Faire tirer un groupe via la commande -shell #206

The-Reaper opened this issue Apr 13, 2023 · 0 comments
Labels

Comments

@The-Reaper
Copy link

Comme vu sur Discord, pouvoir lier une unité à la commande -shells pour faire tirer cette unité sur le marqueur. Exemple :

-shell radius 200, group Fregate, qty 30

--

Faisable via le scripting de DCS dans un trigger avec la tâche FireAtPoint. Un exemple de code pour une mission perso :

local group = Group.getByName("DDG")
local namedPoint = veafNamedPoints.getPoint("ARTY") -- le nom du point qu'on a placé auparavant

if namedPoint and group then
local fireTask = {
id = 'FireAtPoint',
params = {
point = {x = namedPoint.x, y = namedPoint.z},
radius = 200, -- meters
expendQty = 30, -- shells
expendQtyEnabled = true,
weaponType = 206963736576,
altitude = namedPoint.y,
alt_type = 0, -- MSL (QNH)
}
}
local controller = group:getController()
if controller then
controller:pushTask(fireTask)
end
end

@The-Reaper The-Reaper changed the title Faire tirer un groupe via la commande -shells Faire tirer un groupe via la commande -shell Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants