Technically, it might be possible to auto span a unit on death that is then given an order to take the coin. I guss you could make it that the Pylon can right click through mineral coins, which would respond with a smart cast that spawns a mule like unit that is then ordered to gather target and then die a few seconds after.
You would need:
Autocast ability that call a "spawn unit" effect
Order spawned unit to pick up the gold (you can use mule spawn as basis for this, it is very easy)
give it a timed life of x seconds.
0
@vjeux: Go
Technically, it might be possible to auto span a unit on death that is then given an order to take the coin. I guss you could make it that the Pylon can right click through mineral coins, which would respond with a smart cast that spawns a mule like unit that is then ordered to gather target and then die a few seconds after.
You would need:
Autocast ability that call a "spawn unit" effect Order spawned unit to pick up the gold (you can use mule spawn as basis for this, it is very easy) give it a timed life of x seconds.