Difference between revisions of "DCS func getCoalition"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
(No difference)
|
m (1 revision imported) |
(No difference)
|
Envrioment: | Mission Scripting | ||
Function: | getCoalition | Added with: 1.2.0 | |
Member Of: | Object, Group, Coalition Object | ||
Syntax: | enum coalition.side Object.getCoalition(Class Self ) | ||
Description: | Returns an enumerator that defines the coalition that an object currently belongs to.
Function also works with Unit, Static Object, Airbase, Weapon
| ||
Return Value: | enum coalition.side | ||
Return Example: | Sides are as follows
0 = neutral 1 = red 2 = blue | ||
Examples: | |||
Related Functions: | Object Class Functions: isExist, destroy, getCategory, getTypeName, getDesc, hasAttribute, getName, getPoint, getPosition, getVelocity, inAir
Coalition Object Class Functions: getCoalition, getCountry Group Class Functions: isExist, activate, destroy, getCategory, getCoalition, getName, getID, getUnit, getUnits, getSize, getInitialSize, getController, enableEmission | ||
Notes: |