From 3e5be909a24d888aa3a8d135557bfe298dc5fbc9 Mon Sep 17 00:00:00 2001 From: Khopa Date: Sun, 2 Aug 2020 02:46:00 +0200 Subject: [PATCH] Lua script injected in mission will not listen to weapon fired event anymore. --- resources/scripts/dcs_liberation.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/scripts/dcs_liberation.lua b/resources/scripts/dcs_liberation.lua index 6df898de..a9476fa4 100644 --- a/resources/scripts/dcs_liberation.lua +++ b/resources/scripts/dcs_liberation.lua @@ -59,9 +59,9 @@ local function onEvent(event) destroyed_objects_positions[#destroyed_objects_positions + 1] = destruction end - if event.id == world.event.S_EVENT_SHOT and event.weapon then - weapons_fired[#weapons_fired + 1] = event.weapon.getTypeName(event.weapon) - end + --if event.id == world.event.S_EVENT_SHOT and event.weapon then + -- weapons_fired[#weapons_fired + 1] = event.weapon.getTypeName(event.weapon) + --end if event.id == world.event.S_EVENT_BASE_CAPTURED and event.place then --messageAll("Base captured :" .. event.place.getName(event.place))