Skip to content

Commit

Permalink
Update Event.lua
Browse files Browse the repository at this point in the history
- Fixed isExist function does not exist for Kiowa Hellfire as reported by Special K
  • Loading branch information
funkyfranky committed Jun 9, 2024
1 parent 137f025 commit ceb77e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Moose Development/Moose/Core/Event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ function EVENT:onEvent( Event )
-- STATIC
---
Event.TgtDCSUnit = Event.target
if Event.target:isExist() and Event.id ~= 33 then -- leave out ejected seat object
if Event.target.isExist and Event.target:isExist() and Event.id ~= 33 then -- leave out ejected seat object, check that isExist exists (Kiowa Hellfire issue, Special K)
Event.TgtDCSUnitName = Event.TgtDCSUnit:getName()
-- Workaround for borked target info on cruise missiles
if Event.TgtDCSUnitName and Event.TgtDCSUnitName ~= "" then
Expand Down

0 comments on commit ceb77e2

Please sign in to comment.