mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Fixed bug when hit object isn't an unit
This commit is contained in:
parent
edb28205cd
commit
121a4f01f8
@ -116,8 +116,10 @@ do
|
||||
|
||||
-- Friendly aircraft hit
|
||||
if event.target:getDesc().category == Unit.Category.AIRPLANE or event.target:getDesc().category == Unit.Category.HELICOPTER then
|
||||
if not event.initiator:getPlayerName() then -- Players don't radio out when they're hit
|
||||
doAmbientChatter("pilotImHit", nil, event.target:getCallsign(), 3)
|
||||
if Object.getCategory(event.initiator) == Object.Category.UNIT then
|
||||
if not event.initiator:getPlayerName() then -- Players don't radio out when they're hit
|
||||
doAmbientChatter("pilotImHit", nil, event.target:getCallsign(), 3)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user