1
0
mirror of https://github.com/acemod/ACE3.git synced 2024-08-30 18:23:18 +00:00

Kestrel4500 - Measure wind relative to player's head direction ()

This commit is contained in:
Fabio Schick 2024-08-17 17:57:37 +02:00 committed by GitHub
parent bdf6a179ad
commit 22f97270f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,7 +15,7 @@
* Public: No
*/
private _playerDir = getDir ACE_player;
private _playerDir = (ACE_player call CBA_fnc_headDir) select 0;
private _windSpeed = vectorMagnitude wind;
private _windDir = (wind select 0) atan2 (wind select 1);
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {