BIS fnc sideID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (codecomment → cc)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3


|1.00
|version1= 1.00


|gr1 = Sides
|gr1= Sides


| Return config side number.
|descr= Return config side number.
* 0 {{=}} [[opfor]] ([[east]])
* 0 {{=}} [[opfor]] ([[east]])
* 1 {{=}} [[blufor]] ([[west]])
* 1 {{=}} [[blufor]] ([[west]])
Line 19: Line 19:
* 9 {{=}} [[sideAmbientLife]]
* 9 {{=}} [[sideAmbientLife]]


| testedSide call [[BIS_fnc_sideID]]
|s1= testedSide call [[BIS_fnc_sideID]]


|p1= testedSide: [[Side]] - the tested side (west, east, etc.)
|p1= testedSide: [[Side]] - the tested side (west, east, etc.)


| [[Number]]
|r1= [[Number]]


|x1= <code>west call [[BIS_fnc_sideID]]; {{codecomment|// returns 1}}</code>
|x1= <code>west call [[BIS_fnc_sideID]]; {{c|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>


|[[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]]
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:sideID}}]]

Revision as of 17:00, 7 February 2021

Hover & click on the images for description

Description

Description:
Return config side number.
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; Template:c
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