forceFlagTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.69|= Game version |eff= global|...")
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *V([a-z])" to "$1 - v$2")
 
(24 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


|1.69|= Game version
|eff= global


|eff= global|= Effects in MP
|arg=global


|arg=global|= Effects in MP
|gr1= Flags
____________________________________________________________________________________________


| Forces flag texture onto flag carrier (unit, vehicle or flag pole). No flag holder required. If "" texture is used, the texture is removed. |= Description
|descr= Forces a flag texture onto a flag carrier (unit, vehicle or flag pole).
____________________________________________________________________________________________
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 |= Parameter 1
|s1= object [[forceFlagTexture]] texture


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


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


| [[setFlagTexture]], [[flag]], [[flagOwner]], [[setFlagOwner]], [[setFlagSide]], [[setObjectTexture]], [[setObjectTextureGlobal]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[flagAnimationPhase]], [[Flag Textures]] |= See also
|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