BIS fnc sideName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(now has the correct layout.)
Line 1: Line 1:
<syntaxhighlight lang=javascript>/*
{{Function|= Comments
Author: Karel Moricky
____________________________________________________________________________________________


Description:
| arma3 |= Game name
Returns side name


Parameter(s):
|1.00|= Game version
0: SIDE or NUMBER - either side or side ID


Returns:
____________________________________________________________________________________________
STRING
*/


private ["_sideID","_sideName"];
| Returns side name. |= Description
_sideID = [_this,0,sidelogic,[sidelogic,0]] call bis_fnc_param;
____________________________________________________________________________________________
if (typename _sideID != typename 0) then {_sideID = _sideID call bis_fnc_sideID;};


_sideName = [
| [sideNumber] call [[BIS_fnc_sideName]]; |= Syntax
"STR_EAST",
 
"STR_WEST",
|p1= '''sideNumber''': [[Side]] or [[Number]] - either side or side ID |=
"STR_GUERRILA",
 
"STR_CIVILIAN",
| [[String]] |= Return value
"STR_DN_UNKNOWN",
____________________________________________________________________________________________
"STR_DISP_CAMPAIGN_ENEMY",
 
"STR_DISP_CAMPAIGN_FRIENDLY",
|x1= <code>[2] [[call]] [[BIS_fnc_sideName]];</code> |=
"STR_LOGIC",
 
"STR_EMPTY",
____________________________________________________________________________________________
"STR_AMBIENT_LIFE"
 
] select _sideID;
| |= See also
localize _sideName;
 
</syntaxhighlight>
}}
 
<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:Arma 3:_Functions|sideName]]

Revision as of 14:45, 2 May 2014

Hover & click on the images for description

Description

Description:
Returns side name.
Execution:
call
Groups:
Uncategorised

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;

Additional Information

See also:
See also needed

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