forceFlagTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Comments" to "|Comments=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *V([a-z])" to "$1 - v$2")
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.70


|1.70|= Game version
|eff= global


|eff= global|Multiplayer Effects=
|arg=global


|arg=global|Multiplayer Effects=
|gr1= Flags
____________________________________________________________________________________________


| Forces a flag texture onto a flag carrier (unit, vehicle or flag pole). No flag holder is required. If "" is used as texture, the texture is removed. This will override regularly owned flags. This type of flag texture cannot be retrieved using [[flagTexture]].<br /><br />
|descr= Forces a flag texture onto a flag carrier (unit, vehicle or flag pole).
'''Note''': Forced flag texture is an additional flag texture, which visually overrides original flag texture and therefore is very expensive to simulate, so please use the functionality sparingly. |DESCRIPTION=
No flag holder is required. If {{hl|""}} is used as texture, the texture is removed.
____________________________________________________________________________________________
This will override regularly owned flags.
This type of flag texture cannot be retrieved using [[flagTexture]], but [[getForcedFlagTexture]].


| object '''forceFlagTexture''' texture |SYNTAX=
{{Feature|important|Forced flag texture is an additional flag texture, which visually overrides original flag texture and therefore is very expensive to simulate, so use the functionality sparingly.}}


|p1= object: [[Object]] - vehicle, unit of flag pole |PARAMETER1=
|s1= object [[forceFlagTexture]] texture


|p2= texture: [[String]] |PARAMETER2=
|p1= object: [[Object]] - vehicle, unit or flag pole


| [[Nothing]] |RETURNVALUE=
|p2= texture: [[String]]
____________________________________________________________________________________________
 
|x1= <code>[[player]] [[forceFlagTexture]] "\A3\Data_F\Flags\Flag_red_CO.paa";</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[setFlagTexture]], [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagSide]], [[setObjectTexture]], [[setObjectTextureGlobal]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=
|r1= [[Nothing]]


|x1= <sqf>player forceFlagTexture "\A3\Data_F\Flags\Flag_red_CO.paa";</sqf>
|seealso= [[getForcedFlagTexture]] [[Arma 3: Flag Textures]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
[[Category:Scripting Commands|SETFLAGTEXTURE]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:46, 8 November 2023

Hover & click on the images for description

Description

Description:
Forces a flag texture onto a flag carrier (unit, vehicle or flag pole). No flag holder is required. If "" is used as texture, the texture is removed. This will override regularly owned flags. This type of flag texture cannot be retrieved using flagTexture, but getForcedFlagTexture.
Forced flag texture is an additional flag texture, which visually overrides original flag texture and therefore is very expensive to simulate, so use the functionality sparingly.
Groups:
Flags

Syntax

Syntax:
object forceFlagTexture texture
Parameters:
object: Object - vehicle, unit or flag pole
texture: String
Return Value:
Nothing

Examples

Example 1:
player forceFlagTexture "\A3\Data_F\Flags\Flag_red_CO.paa";

Additional Information

See also:
getForcedFlagTexture Arma 3: Flag Textures

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