WFSideText: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (Text replacement - "{{Feature|Informative|" to "{{Feature|informative|")
 
(35 intermediate revisions by 4 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


| Returns the un[[localize]]d text value of an object's side / a group's side or a side as:
|game3= tkoh
|version3= 1.00


* "East",
|game4= arma3
* "West",
|version4= 0.50
* "Resistance",
* "Civilian"
* "Unknown" |= Description
____________________________________________________________________________________________


| '''WFSideText''' objectOrGroupOrSide |= Syntax
|gr1= Sides


|p1= objectOrGroupOrSide: [[Object]], [[Group]] or [[Side]] |= PARAMETER1
|gr2= Localization


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


|p3= |= PARAMETER3
{{{!}} 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"
{{!}}}


| [[String]] - unlocalized text value of objectOrGroupOrSide's [[Side]] |= RETURNVALUE
{{Feature|informative|''WF'' stands for '''Warfare''', an [[Warfare 1 - Editing Guide|{{arma1}}]]/[[Warfare 2 Manual|{{arma2}}]] official game mode.}}


|s1= [[WFSideText]] value


|x1= <Code>[[WFSideText]] [[player]];</Code> |= EXAMPLE1
|p1= value: [[Object]], [[Group]] or [[Side]]


|x2= <Code>[[WFSideText]] [[group]] [[player]];</Code> |= EXAMPLE2
|r1= [[String]] - unlocalized side text value


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


____________________________________________________________________________________________
|x2= <sqf>WFSideText group player;</sqf>


| [[side]], [[localize]], [[isLocalized]] |= SEEALSO
|x3= <sqf>WFSideText west;</sqf>


| |= MPBEHAVIOUR
|seealso= [[side]] [[localize]] [[isLocalized]]
____________________________________________________________________________________________
}}
}}
<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 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[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