I think you are pretty close to the solution. I tried making it work myself and it was not too difficult, perhaps more complex behavior can be designed, but I just made a basic automatic pickup.
You need to issue the command of the Inventory ability type that the unit probably has. The ability command ID for 'Take' is 2, so the Ability Command field of the Issue Order effect should be set like so. If you'd like to know different commands and their IDs, you can take a look at the ability Commands field and count from the first being ID 0.
I hope this gets you up to speed. Another useful note is to exclude 'Hidden' from the search area, otherwise it will include also the items already in units inventory. I guess best is to use an Iterate Inventory effect to drop specific items, but I haven't used this type yet, so I can't say for sure.
Anyhow, if you require any more assistance I'd be happy to help. Take care.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I can't figure out how to do this.
I was thinking, ability[Effect - Target]>Searcharea>IssueOrder> ability[Inventory>take??]
I can get the unit to run to the loot item but it won't pick it up. I can't figure out how the inventory ability works or if this is even possible.
It's been 3 days of struggling, please help me figure this out.
---
My goal is to have custom worker units that collect resources that drop from units then when full deliver them to another target area for processing.
I didn't want to get involved with triggers for this part if possible. I feel like there is an elegant solution with abilities/effects.
Hi there,
I think you are pretty close to the solution. I tried making it work myself and it was not too difficult, perhaps more complex behavior can be designed, but I just made a basic automatic pickup.
You need to issue the command of the Inventory ability type that the unit probably has. The ability command ID for 'Take' is 2, so the Ability Command field of the Issue Order effect should be set like so. If you'd like to know different commands and their IDs, you can take a look at the ability Commands field and count from the first being ID 0.
I hope this gets you up to speed. Another useful note is to exclude 'Hidden' from the search area, otherwise it will include also the items already in units inventory. I guess best is to use an Iterate Inventory effect to drop specific items, but I haven't used this type yet, so I can't say for sure.
Anyhow, if you require any more assistance I'd be happy to help. Take care.