From 774984dbacdc2506607c84881f07d09c1082c4b8 Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Tue, 6 Oct 2015 17:41:00 +0200 Subject: [PATCH] Added possibility for memory point rope origins --- addons/fastroping/functions/fnc_deployRopes.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/fastroping/functions/fnc_deployRopes.sqf b/addons/fastroping/functions/fnc_deployRopes.sqf index f47b5873b7..384c57e363 100644 --- a/addons/fastroping/functions/fnc_deployRopes.sqf +++ b/addons/fastroping/functions/fnc_deployRopes.sqf @@ -34,7 +34,11 @@ _deployedRopes = []; _hook = QGVAR(helper) createVehicle [0, 0, 0]; _hook allowDamage false; - _hook attachTo [_vehicle, _x]; + if (typeName _x == "ARRAY") then { + _hook attachTo [_vehicle, _x]; + } else { + _hook attachTo [_vehicle, [0,0,0], _x]; + }; _ropeTop = ropeCreate [_hook, [0, 0, 0], _dummy, [0, 0, 0], 2]; _ropeBottom = ropeCreate [_dummy, [0, 0, 0], _anchor, [0, 0, 0], 33];