BIS fnc sideName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "Side relations" to "Side Relations")
 
(43 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.00


|1.00|= Game version
|gr1= Sides


____________________________________________________________________________________________
|descr= Returns localized side name.
{{Columns|2|
* 0 / [[opfor]] ([[east]]) {{=}} "OPFOR"
* 1 / [[blufor]] ([[west]]) {{=}} "BLUFOR"
* 2 / [[independent]] ([[resistance]]) {{=}} "Independent"
* 3 / [[civilian]] {{=}} "Civilian"
* 4 / [[sideUnknown]] {{=}} "Unknown"
* 5 / [[sideEnemy]] {{=}} "Enemy"
* 6 / [[sideFriendly]] {{=}} "Friendly"
* 7 / [[sideLogic]] {{=}} "Game Logic"
* 8 / [[sideEmpty]] {{=}} "Empty"
* 9 / [[sideAmbientLife]] {{=}} "Ambient life"
}}


| Returns side name. |= Description
|s1= [input] call [[BIS_fnc_sideName]]
____________________________________________________________________________________________


| [sideNumber] call [[BIS_fnc_sideName]]; |= Syntax
|p1= input: [[Side]] or [[Number]] - either side or side ID


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


| [[String]] |= Return value
|x1= <sqf>[2] call BIS_fnc_sideName;</sqf>
____________________________________________________________________________________________
 
|x1= <code>[2] [[call]] [[BIS_fnc_sideName]];</code> |=


____________________________________________________________________________________________
|x2= <sqf>[independent] call BIS_fnc_sideName;</sqf>
 
| |= See also


|seealso= [[side]] [[countSide]] {{Link|CfgVehicles Config Reference#side}} [[Side]] [[playerSide]] [[Side Relations]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Sides|{{uc:sideName}}]]
[[Category:Functions|{{uc:sideName}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:sideName}}]]

Latest revision as of 20:02, 12 June 2023

Hover & click on the images for description

Description

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

Syntax

Syntax:
[input] call BIS_fnc_sideName
Parameters:
input: 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:
side countSide CfgVehicles Config Reference - side Side playerSide Side 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