{"name":"ctrlAnimateModel","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.84"}],"since":{"game":"arma3","name":"Arma 3","version":"1.84"},"arma3_since":"1.84","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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]","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"3D control","types":["Control"],"since":null,"text":"control : Control - 3D control"},{"name":"source","type":"String","optional":false,"default":null,"description":"common source","types":["String"],"since":null,"text":"source: String - common source"},{"name":"phase","type":"Number","optional":false,"default":null,"description":"wanted animation phase","types":["Number"],"since":null,"text":"phase: Number - wanted animation phase"},{"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","types":["Boolean","Number"],"since":null,"text":"speed: Boolean or Number - (Optional, default false)\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","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"control","types":["Control"]},"right":{"text":"[source, phase, speed]","types":["Array"]}}],"examples":[{"text":"```sqf\n_control3D ctrlAnimateModel [\"Close\", 1];\n```","code":["_control3D ctrlAnimateModel [\"Close\", 1];"]},{"text":"```sqf\n_ctrlLaptop ctrlAnimateModel [\"Lid\", 1, 2];\n```","code":["_ctrlLaptop ctrlAnimateModel [\"Lid\", 1, 2];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlAnimationPhaseModel","ctrlCreate","ctrlDelete","ctrlModel","ctrlPosition","ctrlSetPosition","ctrlClassName","displayCtrl","ctrlModelScale","ctrlSetModelScale","ctrlModelDirAndUp","ctrlSetModelDirAndUp"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Object","Introduced with Arma 3 version 1.84","Scripting Commands"]}