BIS fnc sideName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add list of potential returns)
(named params, fixed missing see also, added 2nd example)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3


|1.00
|version1= 1.00


|gr1 = Sides
|gr1 = Sides
Line 19: Line 19:
* 9 / [[sideAmbientLife]] {{=}} "Ambient life"
* 9 / [[sideAmbientLife]] {{=}} "Ambient life"


| [sideNumber] call [[BIS_fnc_sideName]];
|s1= [sideNumber] call [[BIS_fnc_sideName]];


|p1= '''sideNumber''': [[Side]] or [[Number]] - either side or side ID
|p1= '''sideNumber''': [[Side]] or [[Number]] - either side or side ID


| [[String]]
|r1= [[String]]
   
   
|x1= <code>[2] [[call]] [[BIS_fnc_sideName]];</code>
|x1= <code>[2] [[call]] [[BIS_fnc_sideName]];</code>


|[[side]], [[countSide]], [[CfgVehicles_Config_Reference#side|CfgVehicles config side value]], [[Side]], [[playerSide]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideLogic]], [[sideFriendly]], [[sideEnemy]], [[sideUnknown]], [[sideEmpty]], [[sideAmbientLife]], [[Side relations]]
|x2= <code><nowiki>[</nowiki>[[independent]]] [[call]] [[BIS_fnc_sideName]];</code>
 
|seealso= [[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:sideName}}]]

Revision as of 00:52, 24 February 2021

Hover & click on the images for description

Description

Description:
Returns localized side name.
Execution:
call
Groups:
Sides

Syntax

Syntax:
[sideNumber] call BIS_fnc_sideName;
Parameters:
sideNumber: Side or Number - either side or side ID
Return Value:
String

Examples

Example 1:
[2] call BIS_fnc_sideName;
Example 2:
[independent] call BIS_fnc_sideName;

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