So, I took a look at the Task stuff, basically here’s some code from “taskMgr.add” that should clear things up:
if extraArgs == None:
extraArgs = []
appendTask = True
# if told to, append the task object to the extra args list so the
# method called will be able to access any properties on the task
if appendTask:
extraArgs.append(task)
task.extraArgs = extraArgs
So here’s what happens: normally there are no extraArgs, so appendTask gets set true, which gives you your task item right away. If you have extra args though… it won’t give you the task item unless you explicitly request it.
[/code]
What do you mean??? When there’re extra args, shouldn’t the task be the last one???
I tested it here, and I get the same results of Boxy, the “task” argument goes in the last argument of the function…