WFSideText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created article, no idea how it works though)
 
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(41 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.04


|1.00|= Game version
|game2= arma2oa
____________________________________________________________________________________________
|version2= 1.50


| (description) |= Description
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| '''WFSideText''' object or group or side |= Syntax
|game4= arma3
|version4= 0.50


|p1= |= PARAMETER1
|gr1= Sides


|p2= |= PARAMETER2
|gr2= Localization


|p3= |= PARAMETER3
|descr= Returns the [[localize|unlocalized]] text value of a side or an object's/group's side.


| returnValue |= RETURNVALUE
{{{!}} class="wikitable"
! Side
{{!}} [[east]] / [[opfor]]
{{!}} [[west]] / [[blufor]]
{{!}} [[resistance]] / [[independent]]
{{!}} [[civilian]]
{{!}} [[sideUnknown]]
{{!}} [[sideEnemy]]
{{!}} [[sideFriendly]]
{{!}} [[sideLogic]]
{{!}} [[sideEmpty]]
{{!}} [[sideAmbientLife]]
{{!}}- style="text-align: center"
! Result
{{!}} "East"
{{!}} "West"
{{!}} "Resistance"
{{!}} "Civilian"
{{!}} colspan="6" {{!}} "Unknown"
{{!}}}


{{Feature|informative|''WF'' stands for '''Warfare''', an [[Warfare 1 - Editing Guide|{{arma1}}]]/[[Warfare 2 Manual|{{arma2}}]] official game mode.}}


|x1= |= EXAMPLE1
|s1= [[WFSideText]] value


____________________________________________________________________________________________
|p1= value: [[Object]], [[Group]] or [[Side]]


| |= SEEALSO
|r1= [[String]] - unlocalized side text value


| |= MPBEHAVIOUR
|x1= <sqf>WFSideText player;</sqf>
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x2= <sqf>WFSideText group player;</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x3= <sqf>WFSideText west;</sqf>
</dl>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[side]] [[localize]] [[isLocalized]]
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 01:26, 2 February 2024

Hover & click on the images for description

Description

Description:
Returns the unlocalized text value of a side or an object's/group's side.
Side east / opfor west / blufor resistance / independent civilian sideUnknown sideEnemy sideFriendly sideLogic sideEmpty sideAmbientLife
Result "East" "West" "Resistance" "Civilian" "Unknown"
WF stands for Warfare, an Armed Assault/Arma 2 official game mode.
Groups:
SidesLocalization

Syntax

Syntax:
WFSideText value
Parameters:
value: Object, Group or Side
Return Value:
String - unlocalized side text value

Examples

Example 1:
WFSideText player;
Example 2:
WFSideText group player;
Example 3:
WFSideText west;

Additional Information

See also:
side localize isLocalized

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