Radzio's edit: Sorry for sticking my nose into ur post but I changed function's name to PickRandomValueFromList - less confusing as it could pick any value (not only a number).
you couldn't just ask me to change it
ah never mind
The best would have been saying: "If X is not an unit, then ignore".
but such function does not exist
. I have tried every potential function but I found none which returned one value for (dead) units and another for anything else.
... and now don't start that "planning-discussion" here
go back to "General modding question" and argue