@Tom: GetFromAgent is a helper attribute to save you from having to do that yourself in ‘OnInit’ of the Task. It’s like doing this:
protected override string OnInit(){
animator = agent.GetComponent();
if (!animator) return “No Animator Component on agent”;
return null;
}
I think is a bit of a special case to get a component from the children of the agent as far as initializing the task for that agent goes, but I could add an optional bool argument as you suggested.
@grofit: You can use the SetProperty ScriptControl action to set the parent of an object :_)
I tend to avoid having tasks that can be performed through reflection and those Script Control tasks.