BIS fnc sideID: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Sides(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Function|Comments= | {{Function|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 8: | Line 7: | ||
|gr1 = Sides |GROUP1= | |gr1 = Sides |GROUP1= | ||
| Return config side number. | | Return config side number. | ||
Line 22: | Line 20: | ||
* 9 {{=}} [[sideAmbientLife]] | * 9 {{=}} [[sideAmbientLife]] | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| testedSide call [[BIS_fnc_sideID]] |SYNTAX= | | testedSide call [[BIS_fnc_sideID]] |SYNTAX= | ||
Line 29: | Line 26: | ||
| [[Number]] |RETURNVALUE= | | [[Number]] |RETURNVALUE= | ||
|x1= <code>west call [[BIS_fnc_sideID]]; {{codecomment|// returns 1}}</code> |EXAMPLE1= | |x1= <code>west call [[BIS_fnc_sideID]]; {{codecomment|// returns 1}}</code> |EXAMPLE1= | ||
|x2= <code>[[hint]] [[format]] ["Your side (%1) ID is %2", playerSide, playerSide call [[BIS_fnc_sideID]]];</code> |EXAMPLE2= | |x2= <code>[[hint]] [[format]] ["Your side (%1) ID is %2", playerSide, playerSide call [[BIS_fnc_sideID]]];</code> |EXAMPLE2= | ||
|[[BIS_fnc_sideType]],[[side]], [[countSide]], [[CfgVehicles_Config_Reference#side|CfgVehicles config side value]], [[Side]], [[playerSide]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideLogic]], [[sideFriendly]], [[sideEnemy]], [[sideUnknown]], [[sideEmpty]], [[sideAmbientLife]], [[Side relations]] |SEEALSO= | |[[BIS_fnc_sideType]],[[side]], [[countSide]], [[CfgVehicles_Config_Reference#side|CfgVehicles config side value]], [[Side]], [[playerSide]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideLogic]], [[sideFriendly]], [[sideEnemy]], [[sideUnknown]], [[sideEmpty]], [[sideAmbientLife]], [[Side relations]] |SEEALSO= |
Revision as of 23:52, 16 January 2021
Description
- Description:
- Return config side number.
- 0 = opfor (east)
- 1 = blufor (west)
- 2 = independent (resistance)
- 3 = civilian
- 4 = sideUnknown
- 5 = sideEnemy
- 6 = sideFriendly
- 7 = sideLogic
- 8 = sideEmpty
- 9 = sideAmbientLife
- Execution:
- call
- Groups:
- Sides
Syntax
- Syntax:
- testedSide call BIS_fnc_sideID
- Parameters:
- testedSide: Side - the tested side (west, east, etc.)
- Return Value:
- Number
Examples
- Example 1:
west call BIS_fnc_sideID; // returns 1
- Example 2:
hint format ["Your side (%1) ID is %2", playerSide, playerSide call BIS_fnc_sideID];
Additional Information
- See also:
- BIS_fnc_sideTypesidecountSideCfgVehicles config side valueSideplayerSidewesteastresistanceciviliansideLogicsideFriendlysideEnemysideUnknownsideEmptysideAmbientLifeSide relations
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note