From caa55850440b1939e49715aafe7971f35e5ea4f2 Mon Sep 17 00:00:00 2001 From: commy2 Date: Sun, 29 Nov 2015 16:50:08 +0100 Subject: [PATCH] simplify getRandomAnimation in sitting --- addons/sitting/functions/fnc_getRandomAnimation.sqf | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addons/sitting/functions/fnc_getRandomAnimation.sqf b/addons/sitting/functions/fnc_getRandomAnimation.sqf index ce95819575..236977a1de 100644 --- a/addons/sitting/functions/fnc_getRandomAnimation.sqf +++ b/addons/sitting/functions/fnc_getRandomAnimation.sqf @@ -17,8 +17,8 @@ private "_animations"; -// Animations Pool -_animations = [ +// Select random animation from Animations Pool +selectRandom [ QGVAR(HubSittingChairA_idle1), QGVAR(HubSittingChairA_idle2), QGVAR(HubSittingChairA_idle3), @@ -43,7 +43,4 @@ _animations = [ QGVAR(HubSittingChairUC_idle2), QGVAR(HubSittingChairUC_idle3), QGVAR(HubSittingChairUC_move1) -]; - -// Select random animation -selectRandom _animations +]