setFlagAnimationPhase: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.68|Game version=
|1.68


|arg= global |Multiplayer Arguments=
|arg= global


|eff= local |Multiplayer Effects=
|eff= local


|gr1= Flags |GROUP1=
|gr1= Flags


| 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=
| 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]]


| flag '''setFlagAnimationPhase''' phase |SYNTAX=
| flag '''setFlagAnimationPhase''' phase


|p1= flag: [[Object]] - flag pole of the type "FlagCarrier"|PARAMETER1=
|p1= flag: [[Object]] - flag pole of the type "FlagCarrier"


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


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_flag1 [[setFlagAnimationPhase]] 0.5;</code> |EXAMPLE1=
|x1= <code>_flag1 [[setFlagAnimationPhase]] 0.5;</code>


| [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]] |SEEALSO=
| [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[flagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]]


}}
}}

Revision as of 12:10, 18 January 2021

Hover & click on the images for description

Description

Description:
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
Groups:
Flags

Syntax

Syntax:
flag setFlagAnimationPhase phase
Parameters:
flag: Object - flag pole of the type "FlagCarrier"
phase: Number - 0...1
Return Value:
Nothing

Examples

Example 1:
_flag1 setFlagAnimationPhase 0.5;

Additional Information

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

Notes