BIS fnc sideID: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (codecomment → cc) |
m (fixed CC) |
||
Line 25: | Line 25: | ||
|r1= [[Number]] | |r1= [[Number]] | ||
|x1= <code>west call [[BIS_fnc_sideID]]; {{ | |x1= <code>west call [[BIS_fnc_sideID]]; {{cc|returns 1}}</code> | ||
|x2= <code>[[hint]] [[format]] ["Your side (%1) ID is %2", playerSide, playerSide call [[BIS_fnc_sideID]]];</code> | |x2= <code>[[hint]] [[format]] ["Your side (%1) ID is %2", playerSide, playerSide call [[BIS_fnc_sideID]]];</code> |
Revision as of 10:11, 8 February 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