From Bohemia Interactive Community
Notes
- Posted on August 18, 2007 - 12:18
- HWM mainframe
-
Works great in multiplayer.
The numbers are representing offset as follows : [X axis,Y axis,Z axis]
The return array can be processed-converted into degrees as follows:
_array = _this weaponDirection "weapon class" ;
_dir_degrees = (_array select 0) atan2 (_array select 1);
- Posted on November 11, 2007 - 01:41
- MessiahUA
-
WeaponClass can only be the primary turret of the vehicle. For example it is not possible to get direction of commander's M2 on M1Abrams.
- Posted on November 13, 2007 - 15:54
- UNN
-
For an alternative to the weaponDirection command, see the following post on the offical forums. On how to obtain the direction of multiple turrets on vehicles.
Turret Animations - new forum
Bottom Section
- Posted on December 9, 2014 - 18:25 (UTC)
- Mechariuswh
-
The suggestion above using atan2 and weaponDirection get the direction the barrel of a weapon is pointing, but this is not the same as the direction a shell will be fired (verify this by getting in an M4 Scorcher, parking it on a slope, elevating the barrel "across" the slope and watching the shell come out in third person).