BIS fnc sideID: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|seealso= ([^ ]+)(\]\]|\}\}), *(\[\[|\{\{)" to "|seealso= $1$2 $3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(17 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|descr= Return config side number. | |descr= Return config side number. | ||
{{Columns|4| | |||
* 0 {{=}} [[opfor]] ([[east]]) | * 0 {{=}} [[opfor]] ([[east]]) | ||
* 1 {{=}} [[blufor]] ([[west]]) | * 1 {{=}} [[blufor]] ([[west]]) | ||
Line 17: | Line 18: | ||
* 8 {{=}} [[sideEmpty]] | * 8 {{=}} [[sideEmpty]] | ||
* 9 {{=}} [[sideAmbientLife]] | * 9 {{=}} [[sideAmbientLife]] | ||
}} | |||
|s1= testedSide call [[BIS_fnc_sideID]] | |s1= testedSide call [[BIS_fnc_sideID]] | ||
Line 24: | Line 26: | ||
|r1= [[Number]] | |r1= [[Number]] | ||
|x1= < | |x1= <sqf>west call BIS_fnc_sideID; // returns 1</sqf> | ||
|x2= < | |x2= <sqf>hint format ["Your side (%1) ID is %2", playerSide, playerSide call BIS_fnc_sideID];</sqf> | ||
|seealso= [[BIS_fnc_sideType]] [[side]] [[countSide]] [[ | |seealso= [[BIS_fnc_sideType]] [[side]] [[countSide]] [[CfgVehicles Config Reference#side|CfgVehicles side value]] [[Side]] [[playerSide]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideLogic]] [[sideFriendly]] [[sideEnemy]] [[sideUnknown]] [[sideEmpty]] [[sideAmbientLife]] [[Side Relations]] | ||
}} | }} |
Latest revision as of 20:02, 12 June 2023
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:
- Example 2:
Additional Information
- See also:
- BIS_fnc_sideType side countSide CfgVehicles side value Side playerSide west east resistance civilian sideLogic sideFriendly sideEnemy sideUnknown sideEmpty sideAmbientLife Side 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