I got lots of waypoints with targetnames from twp1_1 to twp1_62, twp2_1 to twp2_62 and twp3_1 to twp3_62. All of them got a key/value of #dir/1, #dir/2, #dir/3 or #dir/4. Now, in the script, I want to read that value, as u can see in the iprintln line, but it's NULL, so obviously I do wrong.
Code: Select all
tw_run:
while (1)
{
local.path = randomint 3 + 1
for (local.i = 0; local.i <=62; local.i++)
{
iprintln_noloc $("twp" + local.path + "_" + local.i + ".dir")
...
}
...
}
end
How would it be working?
Code: Select all
$thing moveto $("twp" + local.path + "_" + local.i)
is working perfectly and for example
gives me the value like I want, so it's the '+ ".dir"' that seem to cause the problem!?