First off, this script is fantastic. Must more realistic than just hitting a pop-up target anywhere and getting a 'kill.' Very good for marksmanship.
Now on to the issue, I get this error as well:
However, I discovered that the error occurs when there is a lot of stuff on the map. The map I'm using it on is a training map, with a couple of various weapon ranges and numerous teamwork scenarios spread out across the map. I made a copy of the map and started deleting areas. I eventually deleted all of the scenario areas and then the script worked perfectly, no error.Code:Error in expression <scoretable; }; if (WALK_TARGET_PUBVAR == _target) then { _scoretable = null; > Error position: <== _target) then { _scoretable = null; > Error ==: Type Script, expected Number,String,Object,Side,Group,Text,Config entry,Display (dialog),Control,Team member,Task,Location
Got me thinking; does this script have trouble overcoming script lag? Is the script getting slowed down to the point that it's attempting to call on variables that have not caught up yet? Given that the clear_target.sqf and check_target.sqf are separate from the init_target.sqf, it seems plausible. Either that or it's just a typo or syntax error and I'm over-complicating things.
HOME
Reply With Quote