On an Ejection event how to identify the coalition
Hello, Here is my code:
local PlayerEject=SET_UNIT:New():FilterCategories("plane"):FilterStart()
PlayerEject : HandleEvent( EVENTS.Ejection )
function PlayerEject:OnEventEjection( EventData )
local JoueurCoalition = EventData.IniCoalition
MESSAGE:New(tostring(JoueurCoalition),20,"Info Ejection"):ToAll()
end
Whatever the coalition of the plane I receive the same answer: "2" ???
Where is my error please