nuxil 2 Posted October 6, 2007 Hi forum i need to know how to calulate the direction of the weapon.. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> _me = (_this select 0); _pw = primaryweapon _me; _wdir = weapondirection _pw; now. how do i get the x,y values converted to direction im not so good with asin/acos/atan(2) Share this post Link to post Share on other sites
RN Malboeuf 12 Posted October 6, 2007 Quote[/b] ]im not so good with asin/acos/atan(2) so find some secondary school textbook Share this post Link to post Share on other sites
nuxil 2 Posted October 6, 2007 Quote[/b] ]im not so good with asin/acos/atan(2) so find some secondary school textbook that was helpfull.. keep you ignorant post's to yourself. and let people that acutaly want to help post. Share this post Link to post Share on other sites
Junker 0 Posted October 6, 2007 the answer is in the wiki >> http://community.bistudio.com/wiki/weaponDirection Share this post Link to post Share on other sites
nuxil 2 Posted October 6, 2007 thanks Junker. im verry grateful for that i dont have inet myself so i have a hard time getting info about all commands..all i got is a old outdated ofp command ref.. now i'll go back to my scripting thanks again Share this post Link to post Share on other sites
halfmileduck 0 Posted January 21, 2008 How do I find the intersection position in the terrain that my weapon is currently facing? That is the centre of the screen when I'm in my primary weapon position? Share this post Link to post Share on other sites
Rommel 2 Posted January 22, 2008 I would usually of thought that a getdir would of been suffice, but then again with ArmA's new floating zone features, makes things interesting doesn't it (+ vehicle turrets) Share this post Link to post Share on other sites