setFlagAnimationPhase: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *F([a-z ])" to "$1 - f$2")
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


| arma3 |Game name=
|game1= arma3
|version1= 1.68


|1.68|Game version=
|arg= global


|arg= global |Multiplayer Arguments=
|eff= local


|eff= local |Multiplayer Effects=
|gr1= Flags


|gr1= Flags |GROUP1=
|descr= Sets flag position on the flag pole. To animate flag use [[BIS_fnc_animateFlag]].


| Sets flag position on the flag pole according to the given animation phase, where 0 is the bottom of the flag pole, 1 is the top of the flag pole. The changes to the flag position are local to the PC command is executed on. To animate flag use [[BIS_fnc_animateFlag]]|DESCRIPTION=
|s1= flag [[setFlagAnimationPhase]] phase


| flag '''setFlagAnimationPhase''' phase |SYNTAX=
|p1= flag: [[Object]] - flag pole of the type {{hl|"FlagCarrier"}}


|p1= flag: [[Object]] - flag pole of the type "FlagCarrier"|PARAMETER1=
|p2= phase: [[Number]] - flag position on the flag pole according to the given animation phase, where 0 is the bottom of the flag pole, 1 is the top of the flag pole.


|p2= phase: [[Number]] - 0...1 |PARAMETER2=
|r1= [[Nothing]]


| [[Nothing]] |RETURNVALUE=
|x1= <sqf>_flag1 setFlagAnimationPhase 0.5;</sqf>
 
|x1= <code>_flag1 [[setFlagAnimationPhase]] 0.5;</code> |EXAMPLE1=
 
| [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=


|seealso= [[flagAnimationPhase]] [[Arma 3: Flag Textures]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
</dl>
<h3 style="display:none">Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}

Latest revision as of 16:29, 8 November 2023

Hover & click on the images for description

Description

Description:
Sets flag position on the flag pole. To animate flag use BIS_fnc_animateFlag.
Groups:
Flags

Syntax

Syntax:
flag setFlagAnimationPhase phase
Parameters:
flag: Object - flag pole of the type "FlagCarrier"
phase: Number - flag position on the flag pole according to the given animation phase, where 0 is the bottom of the flag pole, 1 is the top of the flag pole.
Return Value:
Nothing

Examples

Example 1:
_flag1 setFlagAnimationPhase 0.5;

Additional Information

See also:
flagAnimationPhase 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