BIS fnc sideID: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Page filling)
m (Remove placeholder link - added an example to apologise!)
Line 8: Line 8:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Return config side number (see [[setDir]]).
| Return config side number.
* 0 {{=}} [[opfor]] ([[east]])
* 0 {{=}} [[opfor]] ([[east]])
* 1 {{=}} [[blufor]] ([[west]])
* 1 {{=}} [[blufor]] ([[west]])
Line 30: Line 30:


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



Revision as of 11:15, 25 March 2018


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:
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