UNN 0 Posted November 3, 2012 Anyone able to write a function(s) that would ensure an object attached to an aircraft, will always point north with 0 pitch and bank? Afraid my maths isn't up to it :( Share this post Link to post Share on other sites
Mukcep 10 Posted November 4, 2012 https://community.bistudio.com/wiki/setVectorDirAndUp Share this post Link to post Share on other sites
UNN 0 Posted November 4, 2012 https://community.bistudio.com/wiki/setVectorDirAndUp Thanks, but I'm aware of the script commands. See the opening post, I need a function to achieve whats requested there, using any or all of the available vector commands. Share this post Link to post Share on other sites
UNN 0 Posted November 4, 2012 Sorry, looks like I posted this question in the ARMA - MISSION EDITING & SCRIPTING thread, instead of ARMA2 - MISSION EDITING & SCRIPTING. Please delete if required. Share this post Link to post Share on other sites
Prodavec 10 Posted November 5, 2012 (edited) vectorDir Hmm? returning value [x, z, y] if [0, 1, 0] - objects points to the N it uses normalized vector (vector with magnitude = 1, easily convertable to angles between object's vectors and axises) to determine direction in Oxz plane N (z) ^ | | W - - + - - > E (x) | O | S Ox - W->E axis Oz - S->N axis Edited November 5, 2012 by Prodavec Share this post Link to post Share on other sites