You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
The-Reaper
changed the title
Faire tirer un groupe via la commande -shells
Faire tirer un groupe via la commande -shell
Apr 13, 2023
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 text was updated successfully, but these errors were encountered: