Fastroping - Add compatibility with 2.12 (#9327)

Co-authored-by: Jouni Järvinen <rautamiekka@users.noreply.github.com>
This commit is contained in:
PabstMirror 2023-08-16 14:00:52 -05:00 committed by GitHub
parent 3e35984610
commit 8517a6ef73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ private _speedMode = speedMode _group;
// - Approach -----------------------------------------------------------------
if (_vehicle distance2D _position > 50) then {
_group setSpeedMode "LIMITED";
_vehicle flyInHeight [20, true];
_vehicle flyInHeight ([20, [20, true]] select ((productVersion # 2) >= 213)); // remove select after 2.14
_commander doMove _position;
waitUntil {_vehicle distance2D _position < 50};
waitUntil {vectorMagnitude (velocity _vehicle) < 3};