BIS fnc sideID: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
Lou Montana (talk | contribs) m (Page filling) |
||
Line 8: | Line 8: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Return config side number (see [[setDir]]). | ||
* 0 {{=}} [[opfor]] ([[east]]) | |||
* 1 {{=}} [[blufor]] ([[west]]) | |||
* 2 {{=}} [[independent]] ([[resistance]]) | |||
* 3 {{=}} [[civilian]] | |||
* 4 {{=}} [[sideUnknown]] | |||
* 5 {{=}} [[sideEnemy]] | |||
* 6 {{=}} [[sideFriendly]] | |||
* 7 {{=}} [[sideLogic]] | |||
* 8 {{=}} [[sideEmpty]] | |||
* | * 9 {{=}} [[sideAmbientLife]] | ||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | testedSide call [[BIS_fnc_sideID]] |= Syntax | ||
|p1= |= Parameter 1 | |p1= testedSide: [[Side]] - the tested side (west, east, etc.) |= Parameter 1 | ||
| |= Return value | | [[Number]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code></code> |= | |x1= <code>west call [[BIS_fnc_sideID]]; {{codecomment|// returns 1}}</code> |= Example 1 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| |= See also | | [[side]], [[countSide]], [[CfgVehicles_Config_Reference#side|CfgVehicles config side value]], [[Side]], [[playerSide]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideLogic]], [[sideFriendly]], [[sideEnemy]], [[sideUnknown]], [[sideEmpty]], [[sideAmbientLife]], [[Side relations]] |= See also | ||
}} | }} | ||
Revision as of 10:12, 25 March 2018
Description
- Description:
- Return config side number (see setDir).
- 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:
- Uncategorised
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
Additional Information
- See also:
- sidecountSideCfgVehicles 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