tortuosit 485 Posted June 10, 2014 Hi, as a result for: hint format ["ocMin %1 | ocMax %2 | fogMin %3 | fogMax %4 | windMin %5 | windMax %6 | minVari %7 | maxVari %8",_ocMin,_ocMax,_fogMin,_fogMax,_windMin,_windMax,_minVari,_maxVari]; I receive: ocMin any | ocMax any | fogMin any ... Any? What any? Why is this? Sometimes I get results, but also mixed with "any"'s and I have no clue why "any". All variables have float values between 0 and 1 and have before even been checked with isNil. Share this post Link to post Share on other sites
Tajin 348 Posted June 10, 2014 Did you define "private" in that script? Sounds like a scope-problem. Share this post Link to post Share on other sites
tortuosit 485 Posted June 10, 2014 Yes, I just found out, local variables which are assigned inside if-clauses are not visible outside the if{}. Will have a look at "private". Share this post Link to post Share on other sites
Tajin 348 Posted June 10, 2014 You can use this to generate the private-array if you don't want to type it by hand: http://rising.at/projekte/ArmA/private.html Just paste your code there and it'll filter out all variables and generate the array. Share this post Link to post Share on other sites
tortuosit 485 Posted June 10, 2014 Thanks, it solved my problem. Share this post Link to post Share on other sites