BIS fnc sideID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (see also)
m (template:command argument fix)
Line 19: Line 19:
* 8 {{=}} [[sideEmpty]]
* 8 {{=}} [[sideEmpty]]
* 9 {{=}} [[sideAmbientLife]]
* 9 {{=}} [[sideAmbientLife]]
|= Description
|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| testedSide call [[BIS_fnc_sideID]] |= Syntax
| testedSide call [[BIS_fnc_sideID]] |SYNTAX=


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


| [[Number]] |= Return value
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|x2= <code>[[hint]] [[format]] ["Your side (%1) ID is %2", playerSide, playerSide call [[BIS_fnc_sideID]]];</code> |= Example 2
|x2= <code>[[hint]] [[format]] ["Your side (%1) ID is %2", playerSide, playerSide call [[BIS_fnc_sideID]]];</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


|[[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]] |= See also
|[[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=
}}
}}



Revision as of 14:33, 7 April 2019


Hover & click on the images for description

Description

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

Notes

Bottom Section