FoxtrotF 10 Posted September 1, 2019 Hello guys! Stuck with params, could please give some help. I'm trying to parse this arguments: _msg = [player, ["acts_millerChooper_in", "acts_millerChooper_loop", "acts_millerChooper_out"], [03.966, 23.10, 03.599], false] spawn YMAN_Anim_fnc_transitionLoopSeq; Using this: params [["_obj", player, [objNull]], ["_animNames", ["acts_millerChooper_in", "acts_millerChooper_loop", "acts_millerChooper_out"], [[""]], 3], ["_animDurations", [03.966, 23.10, 03.599], [[0]], 3] ]; _animLoop = param [3, false, [true]]; _animNames params ["_animIn", "_animLoop", "_animOut"]; _animDurations params ["_durIn", "_durLoop", "_durOut"]; it works with the first 3, but not for the bool _animLoop, what I'm doing wrong? I tried to parse _animLoop inside params instead of param, but it not working and outputs _animsDone as "acts_millerChopper_loop". Share this post Link to post Share on other sites
killzone_kid 1326 Posted September 1, 2019 The array of arguments you pass has 4 arguments: [object, array, array, boolean] Share this post Link to post Share on other sites
FoxtrotF 10 Posted September 1, 2019 6 minutes ago, killzone_kid said: The array of arguments you pass has 4 arguments: [object, array, array, boolean] How to parse the fourth one, boolean? Share this post Link to post Share on other sites
killzone_kid 1326 Posted September 1, 2019 params ["_object", "_array1", "_array2", "_boolean"]; Share this post Link to post Share on other sites
FoxtrotF 10 Posted September 1, 2019 I tried different variations with params, and all of them, outputing "_animLoop" as string and it content is "acts_millerChopper_loop" params [["_obj", player, [objNull]], ["_animNames", ["acts_millerChooper_in", "acts_millerChooper_loop", "acts_millerChooper_out"], [[""]], 3], ["_animDurations", [03.966, 23.10, 03.599], [[0]], 3], "_animLoop" ]; Share this post Link to post Share on other sites
FoxtrotF 10 Posted September 1, 2019 Sorry, I'm idiot, I'm using _animLoop twice in the code, two hours I tried to figure this out :lol Share this post Link to post Share on other sites