BIS fnc sideID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Page filling)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Return config side number (see [[setDir]]).
 
* 0 {{=}} [[opfor]] ([[east]])
Description:
* 1 {{=}} [[blufor]] ([[west]])
Returns side ID (as used in config).
* 2 {{=}} [[independent]] ([[resistance]])
 
* 3 {{=}} [[civilian]]
Parameter(s):
* 4 {{=}} [[sideUnknown]]
0: SIDE
* 5 {{=}} [[sideEnemy]]
 
* 6 {{=}} [[sideFriendly]]
Returns:
* 7 {{=}} [[sideLogic]]
NUMBER
* 8 {{=}} [[sideEmpty]]
*/
* 9 {{=}} [[sideAmbientLife]]
 
|= Description
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_sideID]]; --> |= Syntax
| 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


Hover & click on the images for description

Description

Description:
Return config side number (see setDir).
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

Notes

Bottom Section