Get a dynent array with the specified targetname
Example:
twigs = getdynentarray("twig")
* = mandatory