BIS fnc sideName: Difference between revisions
Jump to navigation
Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki) |
Killzone Kid (talk | contribs) (Created page with "<syntaxhighlight lang=javascript>→Author: Karel Moricky Description: Returns side name Parameter(s): 0: SIDE or NUMBER - either side or side ID Returns: STRING: pr...") |
||
Line 1: | Line 1: | ||
<syntaxhighlight lang=javascript>/* | |||
Author: Karel Moricky | |||
Description: | Description: | ||
Line 20: | Line 12: | ||
*/ | */ | ||
private ["_sideID","_sideName"]; | |||
_sideID = [_this,0,sidelogic,[sidelogic,0]] call bis_fnc_param; | |||
if (typename _sideID != typename 0) then {_sideID = _sideID call bis_fnc_sideID;}; | |||
} | |||
_sideName = [ | |||
"STR_EAST", | |||
"STR_WEST", | |||
"STR_GUERRILA", | |||
"STR_CIVILIAN", | |||
"STR_DN_UNKNOWN", | |||
"STR_DISP_CAMPAIGN_ENEMY", | |||
"STR_DISP_CAMPAIGN_FRIENDLY", | |||
"STR_LOGIC", | |||
"STR_EMPTY", | |||
"STR_AMBIENT_LIFE" | |||
] select _sideID; | |||
localize _sideName; | |||
</syntaxhighlight> |
Revision as of 17:25, 21 November 2013
/*
Author: Karel Moricky
Description:
Returns side name
Parameter(s):
0: SIDE or NUMBER - either side or side ID
Returns:
STRING
*/
private ["_sideID","_sideName"];
_sideID = [_this,0,sidelogic,[sidelogic,0]] call bis_fnc_param;
if (typename _sideID != typename 0) then {_sideID = _sideID call bis_fnc_sideID;};
_sideName = [
"STR_EAST",
"STR_WEST",
"STR_GUERRILA",
"STR_CIVILIAN",
"STR_DN_UNKNOWN",
"STR_DISP_CAMPAIGN_ENEMY",
"STR_DISP_CAMPAIGN_FRIENDLY",
"STR_LOGIC",
"STR_EMPTY",
"STR_AMBIENT_LIFE"
] select _sideID;
localize _sideName;