{"name":"ctrlModelDirAndUp","operator":null,"title":"ctrlModelDirAndUp","type":"command","url":"https://community.bistudio.com/wiki/ctrlModelDirAndUp","revid":365012,"updated":"2024-07-10T09:58:01Z","groups":["GUI Control - Object"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.32"}],"since":{"game":"arma3","name":"Arma 3","version":"1.32"},"arma3_since":"1.32","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns vectorDir and vectorUp of the model used in 3D-Dialogs. Returns [[],[]] if control is null.","syntaxes":[{"syntax":"ctrlModelDirAndUp control","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"}],"returns":{"type":"Array of Vector3Ds format [vectorDir, vectorUp] or [[],[]]","types":["Array","Vector3D","vectorDir","vectorUp"],"description":null,"text":"Array of Vector3Ds format [vectorDir, vectorUp] or [[],[]]"},"form":"unary","operator":null,"left":null,"right":{"text":"control","types":["Control"]}}],"examples":[{"text":"```sqf\n_vectorDirAndUp = ctrlModelDirAndUp _control3D;\n```","code":["_vectorDirAndUp = ctrlModelDirAndUp _control3D;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlModelVectorSide","ctrlCreate","ctrlDelete","ctrlSetModelDirAndUp","ctrlModel","ctrlSetModel","ctrlSetModelScale","ctrlModelScale","ctrlPosition","ctrlSetPosition","ctrlClassName","displayCtrl"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: GUI Control - Object","Introduced with Arma 3 version 1.32","Scripting Commands"]}