Sides
36 scripting commands. Also as Markdown for agents.
- addScoreSideAdds side score. This is shown in the MP score tab as the total score. MP only.
- airportSideGets the side of an airport, set by setAirportSide. Default side is sideUnknown.
- allSitesReturn all sites in map.
- bluforPre-defined variable for the blufor side.
- captiveReturns the captive state of the given unit (set with setCaptive). A captive unit will not be attacked by its enemies.
- captiveNumChecks whether the unit is a captive. If the unit is a vehicle, its commander is checked instead.
- civilianPre-defined variable for the civilian side.
- countEnemyCount how many units in the array are considered enemy to the given unit.
- countFriendlyCount how many units in the array are considered friendly to the given unit.
- countSideReturns how many units in the given array belong to given side.
- countUnknownCount how many units in the array are unknown to the given unit.
- createCenterInstanciate a Side center. A Side center is required to be able to create groups of this side.
- createSiteCreate a new site.
- deleteCenterIn a nutshell, this command removes gaming Side (see createCenter). If a side has >0 Groups it cannot be deleted.
- eastPre-defined variable for the eastern side.
- factionGets unit faction. Factions were introduced in Arma 2 and are defined under *CfgFactionClasses*.
- getFriendReturns 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.
- independentPre-defined variable for the independent side.
- knowsAboutChecks if a group or a side knows about target. - Enemy knowledge is instantly shared among the group units - Units in the same group always…
- opforPre-defined variable for the opfor side.
- playerSideReturns the player's side. This is valid even when the player controlled person is dead (a difference from side player).
- resistancePre-defined variable for the resistance side.
- scoreSideReturns score for the given side. MP Only.
- setAirportSideSet owning side of the airport. ID is the number to identify which airport on the island you want to check.
- setCaptiveMark 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…
- setFriendSets how friendly a side is with another. The friendliness is set for one side, not for the other. See also Side Relations.
- setSideSets a location's side. The default side is Unknown.
- sideReturns 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…
- sideAmbientLifeReturns side of ambient life, for example ambient life placed in Eden Editor.
- sideEmptyReturns empty side, for example static buildings in Eden Editor.
- sideEnemyThe 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…
- sideFriendlyThe Friendly side - friendly to all, see Side Relations.
- sideLogicThe Logic side. Side of Game Logics and Modules.
- sideUnknownThe unknown side.
- westWest (BLUFOR) side.
- WFSideTextReturns the unlocalized text value of a side or an object's/group's side.