{"name":"ctrlAnimateModel","title":"ctrlAnimateModel","type":"command","url":"https://community.bistudio.com/wiki/ctrlAnimateModel","revid":329860,"updated":"2022-08-07T23:03:59Z","groups":["GUI Control - Object"],"status":"ok","games":{"arma3":"1.84"},"since":"arma3 1.84","arma3_since":"1.84","description":"Process an animation of 3D Arma: GUI Configuration. Command uses name defined by source property and works similar like animateSource command.","syntaxes":[{"syntax":"control ctrlAnimateModel [source, phase, speed]","params":[{"name":"control","type":"Control","description":"3D control","type_expr":"Control","text":"control : Control - 3D control"},{"name":"source","type":"String","description":"common source","type_expr":"String"},{"name":"phase","type":"Number","description":"wanted animation phase","type_expr":"Number"},{"name":"speed","type":"Boolean or Number","optional":true,"default":"false","description":"Boolean - when set to true, animation is instant\n- Arma 3 v1.66 Number - > 0 is treated as config speed value multiplier","type_expr":"Boolean | Number","text":"speed: Boolean or Number - (Optional, default false)\n\n- Boolean - when set to true, animation is instant\n- Arma 3 v1.66 Number - > 0 is treated as config speed value multiplier"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"control"},"right":{"text":"[source, phase, speed]"}}],"examples":[{"code":["_control3D ctrlAnimateModel [\"Close\", 1];"]},{"code":["_ctrlLaptop ctrlAnimateModel [\"Lid\", 1, 2];"]}],"see_also":["ctrlAnimationPhaseModel","ctrlCreate","ctrlDelete","ctrlModel","ctrlPosition","ctrlSetPosition","ctrlClassName","displayCtrl","ctrlModelScale","ctrlSetModelScale","ctrlModelDirAndUp","ctrlSetModelDirAndUp"]}