BIS fnc sideName: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>")
m (Text replacement - "Side relations" to "Side Relations")
 
(19 intermediate revisions by the same user not shown)
Line 7: Line 7:


|descr= Returns localized side name.
|descr= Returns localized side name.
{{Columns|2|
* 0 / [[opfor]] ([[east]]) {{=}} "OPFOR"
* 0 / [[opfor]] ([[east]]) {{=}} "OPFOR"
* 1 / [[blufor]] ([[west]]) {{=}} "BLUFOR"
* 1 / [[blufor]] ([[west]]) {{=}} "BLUFOR"
Line 17: Line 18:
* 8 / [[sideEmpty]] {{=}} "Empty"
* 8 / [[sideEmpty]] {{=}} "Empty"
* 9 / [[sideAmbientLife]] {{=}} "Ambient life"
* 9 / [[sideAmbientLife]] {{=}} "Ambient life"
}}


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


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


|r1= [[String]]
|r1= [[String]]
Line 26: Line 28:
|x1= <sqf>[2] call BIS_fnc_sideName;</sqf>
|x1= <sqf>[2] call BIS_fnc_sideName;</sqf>


|x2= <code><nowiki>[</nowiki>[[independent]]] [[call]] [[BIS_fnc_sideName]];</code>
|x2= <sqf>[independent] call BIS_fnc_sideName;</sqf>


|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]]
|seealso= [[side]] [[countSide]] {{Link|CfgVehicles Config Reference#side}} [[Side]] [[playerSide]] [[Side Relations]]
}}
}}

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