flagAnimationPhase: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> </dl>" to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3


|1.68
|version1= 1.68


|arg= global
|arg= global
Line 9: Line 9:
|gr1= Flags
|gr1= Flags


| Returns flag position on the flag pole in range of 0..1, where 0 is bottom of the flag pole, 1 is the top of the flag pole. The result is local to the PC on which command is executed
|descr= Returns flag position on the flag pole.


| '''flagAnimationPhase''' flag
|mp= The result is local to the PC on which command is executed.


|p1= flag: [[Object]] - flag pole of the type "FlagCarrier"
|s1= '''flagAnimationPhase''' flag


|  [[Number]] - 0...1
|p1= flag: [[Object]] - Flag pole of the type <tt>"FlagCarrier"</tt>
 
|r1= [[Number]] - Flag position in range from 0 to 1, where 0 is bottom of the flag pole, 1 is the top of the flag pole
   
   
|x1= <code>[[flagAnimationPhase]] _flag1; //0.5</code>
|x1= <code>[[flagAnimationPhase]] _flag1;</code>


|seealso= [[flag]], [[flagOwner]], [[setFlagSide]], [[setFlagTexture]], [[flagSide]], [[flagTexture]], [[setFlagAnimationPhase]], [[forceFlagTexture]], [[getForcedFlagTexture]], [[Flag Textures]]
|seealso= [[setFlagAnimationPhase]] [[Arma 3: Flag Textures]]
}}
}}
{{GameCategory|arma3|Scripting Commands}}

Revision as of 11:49, 28 May 2021

Hover & click on the images for description

Description

Description:
Returns flag position on the flag pole.
Multiplayer:
The result is local to the PC on which command is executed.
Groups:
Flags

Syntax

Syntax:
flagAnimationPhase flag
Parameters:
flag: Object - Flag pole of the type "FlagCarrier"
Return Value:
Number - Flag position in range from 0 to 1, where 0 is bottom of the flag pole, 1 is the top of the flag pole

Examples

Example 1:
flagAnimationPhase _flag1;

Additional Information

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