Jump to content
JeyR

Error 0 elements provided 3 expected

Recommended Posts

Helo.This error is driving me nuts. Any ideas why this happens? :

Steam Image <-- image
 

_guardgroup = createGroup east;
_base = [getMarkerPos current_task, 400, 3000, 40, 0, 0.5, 0, ["base_marker"], getMarkerPos current_task] call BIS_fnc_findSafePos;
_guard = _guardgroup createUnit ["rhs_msv_emr_officer_armored", _base, [], 2, "NONE"];

 

Share this post


Link to post
Share on other sites

My guess is that the BIS_fnc_findSafePos fails in it search. In that case it would ordinary return valid position. Same if you call getMarkerPos something non-existent. So my guess is the only reason you get that size error is because your have specified your own defaultPos in a wrong format and it is attempting to use a single number as a position (rather than an array of 3 numbers). You have specified the defaultPos as: getMarkerPos current_tasks , but BIKI would suggests that you have to have an array of two default positions, so it should be  [getMarkerPos current_task, getMarkerPos current_tasks].

  • Like 1

Share this post


Link to post
Share on other sites

Wow. Thanks for quick reply. It worked. Can't believe it! Cheers.

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

×