CoalitionObject#

CoalitionObject extends Object and is inherited by every object that can belong to a coalition: units, weapons, static objects, and airbases. It is a non-final class.

class CoalitionObject#

Inherits all member functions of Object.

getCoalition()#

Returns the coalition the object belongs to.

Returns:

Coalition ID (see coalition.side).

Return type:

number

getCountry()#

Returns the country the object belongs to.

Returns:

Country ID.

Return type:

number

Footnotes#