Deth Stryker 0 Posted April 7, 2007 Hi all, On Kronzky's latest UPS, I continually get errors on line 104? The error it posts looks similar to this section. // unit that's moving _obj = _this select 0; _exit = true; _npc = _obj; if (typename _obj=="OBJECT") then { if (alive _npc) then {_exit = false;} } else { if (count _obj==0) then { _exit=true; } else { {if (alive _x) then {_npc = _x; _exit = false;}} forEach _obj; }; The error revolves around the "if (count _obj==0)" part. It is expecting an array in front of count. Does anyone know how to fix this? This is the only problem preventing a mission from release!! If anyone can help it would be greatly appreciated, I will be sending Kronzky an email detailing the bug. Thanks Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted April 15, 2007 oops, nevermind. I thought this was the arma board... Share this post Link to post Share on other sites
Metal Heart 0 Posted April 15, 2007 What parameters did you use for the script? I think it expects an array _this with the first element being a nested array of objects or a single object. There's a difference between: thing1 execVM "script.sqf"; [thing1] execVM "script.sqf"; [[thing1]] execVM "script.sqf"; Share this post Link to post Share on other sites