Jump to content
Sign in to follow this  
Deth Stryker

UPS Error Line 104

Recommended Posts

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×