{"name":"setFlagAnimationPhase","operator":null,"title":"setFlagAnimationPhase","type":"command","url":"https://community.bistudio.com/wiki/setFlagAnimationPhase","revid":348703,"updated":"2023-11-08T14:29:28Z","groups":["Flags"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.68"}],"since":{"game":"arma3","name":"Arma 3","version":"1.68"},"arma3_since":"1.68","branch":null,"locality":{"argument":"global","effect":"local","server_exec":false},"exec":null,"description":"Sets flag position on the flag pole. To animate flag use BIS_fnc_animateFlag.","syntaxes":[{"syntax":"flag setFlagAnimationPhase phase","since":null,"effect":null,"exec":null,"params":[{"name":"flag","type":"Object","optional":false,"default":null,"description":"flag pole of the type `\"FlagCarrier\"`","types":["Object"],"since":null,"text":"flag: Object - flag pole of the type `\"FlagCarrier\"`"},{"name":"phase","type":"Number","optional":false,"default":null,"description":"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.","types":["Number"],"since":null,"text":"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."}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"flag","types":["Object"]},"right":{"text":"phase","types":["Number"]}}],"examples":[{"text":"```sqf\n_flag1 setFlagAnimationPhase 0.5;\n```","code":["_flag1 setFlagAnimationPhase 0.5;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["flagAnimationPhase","Arma 3: Flag Textures"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Flags","Introduced with Arma 3 version 1.68","Scripting Commands","Scripting Commands: Local Effect"]}