From 576394f18cce91afd5360e5a308955b4c4b1cfe2 Mon Sep 17 00:00:00 2001 From: FlightControl Date: Tue, 21 Mar 2017 09:56:20 +0100 Subject: [PATCH] MP test --- Moose Development/Moose/Core/Event.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Moose Development/Moose/Core/Event.lua b/Moose Development/Moose/Core/Event.lua index bed88693f..9b2472ef0 100644 --- a/Moose Development/Moose/Core/Event.lua +++ b/Moose Development/Moose/Core/Event.lua @@ -785,11 +785,11 @@ function EVENT:onEvent( Event ) if Event.weapon then Event.Weapon = Event.weapon Event.WeaponName = Event.Weapon:getTypeName() - Event.WeaponUNIT = CLIENT:FindByName( Event.WeaponName, '', true ) -- Sometimes, the weapon is a player unit! - Event.WeaponPlayerName = Event.WeaponUNIT and Event.Weapon:getPlayerName() - Event.WeaponCoalition = Event.WeaponUNIT and Event.Weapon:getCoalition() - Event.WeaponCategory = Event.WeaponUNIT and Event.Weapon:getDesc().category - Event.WeaponTypeName = Event.WeaponUNIT and Event.Weapon:getTypeName() + Event.WeaponPlayerName = Event.Weapon:getPlayerName() + Event.WeaponUNIT = Event.WeaponPlayerName and CLIENT:FindByName( Event.WeaponName, '', true ) -- Sometimes, the weapon is a player unit! + Event.WeaponCoalition = Event.WeaponPlayerName and Event.Weapon:getCoalition() + Event.WeaponCategory = Event.WeaponPlayerName and Event.Weapon:getDesc().category + Event.WeaponTypeName = Event.WeaponPlayerName and Event.Weapon:getTypeName() --Event.WeaponTgtDCSUnit = Event.Weapon:getTarget() end