WFSideText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


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


|1.04|Game version=
|game2= arma2oa
|version2= 1.50


|gr1= Sides |GROUP1=
|game3= tkoh
____________________________________________________________________________________________
|version3= 1.00


| Returns the un[[localize]]d text value of an object's side / a group's side or a side as:
|game4= arma3
|version4= 0.50


* [[east]], [[opfor]] - "East"
|gr1= Sides
* [[west]], [[blufor]] - "West"
* [[resistance]], [[independent]] - "Resistance"
* [[civilian]] - "Civilian"
* [[sideUnknown]] - "Unknown"
* [[sideEnemy]] - "Unknown"
* [[sideFriendly]] - "Unknown"
* [[sideLogic]] - "Unknown"
* [[sideEmpty]] - "Unknown"
* [[sideAmbientLife]] - "Unknown" |DESCRIPTION=
____________________________________________________________________________________________


| '''WFSideText''' param |SYNTAX=
|gr2= Localization


|p1= param: [[Object]], [[Group]] or [[Side]] |PARAMETER1=
|descr= Returns the [[localize|unlocalized]] text value of a side or an object's/group's side.


|p2= |PARAMETER2=  
{{{!}} 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"
{{!}}}


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


| [[String]] - unlocalized side text value |RETURNVALUE=
|s1= [[WFSideText]] value


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


|x1= <Code>[[WFSideText]] [[player]];</Code> |EXAMPLE1=
|r1= [[String]] - unlocalized side text value


|x2= <Code>[[WFSideText]] [[group]] [[player]];</Code> |EXAMPLE2=
|x1= <sqf>WFSideText player;</sqf>


|x3= <Code>[[WFSideText]] [[west]]</Code> |EXAMPLE3=
|x2= <sqf>WFSideText group player;</sqf>


____________________________________________________________________________________________
|x3= <sqf>WFSideText west;</sqf>


| [[side]], [[localize]], [[isLocalized]] |SEEALSO=
|seealso= [[side]] [[localize]] [[isLocalized]]
 
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}
}}
<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:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on August 17, 2014 - 11:04 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
WF stands for Warfare
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 00: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