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

use ASL instead of ATL when z isn't used anyway

This commit is contained in:
commy2 2016-09-19 12:18:24 +02:00
parent 4de8ed0f10
commit d86ceef484

View File

@ -21,8 +21,8 @@ if (isNull _causedBy) exitWith { // won't be able to calculate the direction pro
}; };
// Calculate bulletDirection // Calculate bulletDirection
private _unitPos = getPosATL _unit; private _unitPos = getPosASL _unit;
private _causedByPos = getPosATL _causedBy; private _causedByPos = getPosASL _causedBy;
private _bulletDir = ((_unitPos select 0) - (_causedByPos select 0)) atan2 ((_unitPos select 1) - (_causedByPos select 1)); private _bulletDir = ((_unitPos select 0) - (_causedByPos select 0)) atan2 ((_unitPos select 1) - (_causedByPos select 1));