@jtff/miztemplate-lib 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lua/src/174-qra-scenario.lua +12 -0
- package/package.json +1 -1
|
@@ -257,6 +257,18 @@ function QRATrigger(params)
|
|
|
257
257
|
QRAFinex,
|
|
258
258
|
QRAIndex
|
|
259
259
|
)
|
|
260
|
+
if (type(dcsbot) ~= 'nil') then
|
|
261
|
+
local title = string.format('QRA triggered !')
|
|
262
|
+
local description = string.format("[%s] triggered a QRA scenario : All QRA pilots, startup and scramble following the procedure",triggerPlayerName)
|
|
263
|
+
local img = 'https://www.defense.gouv.fr/sites/default/files/styles/16_9_sm/public/air/22_09_2023_13.jpeg?itok=n_MPmvZc'
|
|
264
|
+
local fields = {
|
|
265
|
+
['Trigger'] = triggerPlayerName,
|
|
266
|
+
['Type'] = QRAArray[QRAIndex].customconfig.type,
|
|
267
|
+
['Coalition'] = UTILS.GetCoalitionName(QRAArray[QRAIndex].customconfig.benefit_coalition),
|
|
268
|
+
}
|
|
269
|
+
local footer = 'Scramble scramble scramble...'
|
|
270
|
+
dcsbot.sendEmbed(title, description, img, fields, footer)
|
|
271
|
+
end
|
|
260
272
|
end
|
|
261
273
|
|
|
262
274
|
function QRAFinex(objQRAIndex)
|