BIS fnc sideID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "^ \{\{(Command|Function)" to "{{$1")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = Sides |GROUP1=
|gr1 = Sides


| Return config side number.
| Return config side number.
Line 18: Line 18:
* 8 {{=}} [[sideEmpty]]
* 8 {{=}} [[sideEmpty]]
* 9 {{=}} [[sideAmbientLife]]
* 9 {{=}} [[sideAmbientLife]]
|DESCRIPTION=


| testedSide call [[BIS_fnc_sideID]] |SYNTAX=


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


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


|x1= <code>west call [[BIS_fnc_sideID]]; {{codecomment|// returns 1}}</code> |EXAMPLE1=
| [[Number]]


|x2= <code>[[hint]] [[format]] ["Your side (%1) ID is %2", playerSide, playerSide call [[BIS_fnc_sideID]]];</code> |EXAMPLE2=
|x1= <code>west call [[BIS_fnc_sideID]]; {{codecomment|// returns 1}}</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=
|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]]
}}
}}



Revision as of 23:44, 17 January 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; // 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

Bottom Section