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:
parent
4de8ed0f10
commit
d86ceef484
@ -21,8 +21,8 @@ if (isNull _causedBy) exitWith { // won't be able to calculate the direction pro
|
||||
};
|
||||
|
||||
// Calculate bulletDirection
|
||||
private _unitPos = getPosATL _unit;
|
||||
private _causedByPos = getPosATL _causedBy;
|
||||
private _unitPos = getPosASL _unit;
|
||||
private _causedByPos = getPosASL _causedBy;
|
||||
|
||||
private _bulletDir = ((_unitPos select 0) - (_causedByPos select 0)) atan2 ((_unitPos select 1) - (_causedByPos select 1));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user