# Sides (scripting commands)

- [addScoreSide](../../commands/addScoreSide.md): Adds side score. This is shown in the MP score tab as the total score. MP only.
- [airportSide](../../commands/airportSide.md): Gets the side of an airport, set by setAirportSide. Default side is sideUnknown.
- [allSites](../../commands/allSites.md) **[broken]**: Return all sites in map.
- [blufor](../../commands/blufor.md): Pre-defined variable for the blufor side.
- [captive](../../commands/captive.md): Returns the captive state of the given unit (set with setCaptive). A captive unit will not be attacked by its enemies.
- [captiveNum](../../commands/captiveNum.md): Checks whether the unit is a captive. If the unit is a vehicle, its commander is checked instead.
- [civilian](../../commands/civilian.md): Pre-defined variable for the civilian side.
- [countEnemy](../../commands/countEnemy.md): Count how many units in the array are considered enemy to the given unit.
- [countFriendly](../../commands/countFriendly.md): Count how many units in the array are considered friendly to the given unit.
- [countSide](../../commands/countSide.md): Returns how many units in the given array belong to given side.
- [countUnknown](../../commands/countUnknown.md): Count how many units in the array are unknown to the given unit.
- [createCenter](../../commands/createCenter.md): Instanciate a Side center. A Side center is required to be able to create groups of this side.
- [createSite](../../commands/createSite.md) **[broken]**: Create a new site.
- [deleteCenter](../../commands/deleteCenter.md): In a nutshell, this command removes gaming Side (see createCenter). If a side has >0 Groups it cannot be deleted.
- [east](../../commands/east.md): Pre-defined variable for the eastern side.
- [faction](../../commands/faction.md): Gets unit faction. Factions were introduced in Arma 2 and are defined under *CfgFactionClasses*.
- [getFriend](../../commands/getFriend.md): Returns if sides are friendly or hostile. For a value smaller than 0.6 it results in being enemy, otherwise it is friendly. See also Side Relations.
- [independent](../../commands/independent.md): Pre-defined variable for the independent side.
- [knowsAbout](../../commands/knowsAbout.md): Checks if a group or a side knows about target. - Enemy knowledge is instantly shared among the group units - Units in the same group always perfectly know about each others - AI knowledge cannot check beyond current…
- [opfor](../../commands/opfor.md): Pre-defined variable for the opfor side.
- [playerSide](../../commands/playerSide.md): Returns the player's side. This is valid even when the player controlled person is dead (a difference from side player).
- [resistance](../../commands/resistance.md): Pre-defined variable for the resistance side.
- [scoreSide](../../commands/scoreSide.md): Returns score for the given side. MP Only.
- [setAirportSide](../../commands/setAirportSide.md): Set owning side of the airport. ID is the number to identify which airport on the island you want to check.
- [setCaptive](../../commands/setCaptive.md): Mark a unit as captive. If unit is a vehicle, commander is marked. A captive unit: - is seen as belonging to the civilian Side - will not be fired upon - will still shoot at its real side's enemies - will make its…
- [setFriend](../../commands/setFriend.md): Sets how friendly a side is with another. The friendliness is set for one side, not for the other. See also Side Relations.
- [setSide](../../commands/setSide.md): Sets a location's side. The default side is Unknown.
- [side](../../commands/side.md): Returns the side of a unit, vehicle, object or location. - side of a renegade soldier is sideEnemy - side of an empty vehicle is civilian - side of a crewed vehicle is, if present, commander's > gunner's > driver's or >…
- [sideAmbientLife](../../commands/sideAmbientLife.md): Returns side of ambient life, for example ambient life placed in Eden Editor.
- [sideEmpty](../../commands/sideEmpty.md): Returns empty side, for example static buildings in Eden Editor.
- [sideEnemy](../../commands/sideEnemy.md): The enemy side which is used for renegades. Units of this side are hostile to everyone. - To join sideEnemy, you can attack members of your own side or use addRating.
- [sideFriendly](../../commands/sideFriendly.md): The Friendly side - friendly to all, see Side Relations.
- [sideLogic](../../commands/sideLogic.md): The Logic side. Side of Game Logics and Modules.
- [sideUnknown](../../commands/sideUnknown.md): The unknown side.
- [west](../../commands/west.md): West (BLUFOR) side.
- [WFSideText](../../commands/WFSideText.md): Returns the unlocalized text value of a side or an object's/group's side.
