So here's the scoop. Drones, Probes, SCVs and Mules use 'Gather' on Mineral Fields or race-specific structures that are unique for each race on a Geyser (duh).
Once the worker has gathered the vespene or minerals, a behaviour is applied to the unit along the lines of Carry Harvestable Resource Name Here. As far as I can tell, the behaviour only controls the Actor - Event which causes the worker to have the mineral or vespene canister attached to it.
What I want to achieve is when a unit takes fatal or non fatal damage, it drops the carried resources. I can do all of that fine through triggers (and possibly through the Data editor at a later date). But the problem I noticed was that by simply removing the Carry Harvestable behaviour from the unit - sure, the attached model disappears - but the specific unit cannot harvest anything since it is still somehow flagged as carrying resources. As in, the behaviour is gone, but the Return Cargo ability/button is still enabled, and an attempt to make the unit harvest resources results in it searching for the Resource Drop Off unit.
Anyone know how to fix this? :)
[sorry it's late, can't find it myself after looking for about an hour or two]
So here's the scoop. Drones, Probes, SCVs and Mules use 'Gather' on Mineral Fields or race-specific structures that are unique for each race on a Geyser (duh).
Once the worker has gathered the vespene or minerals, a behaviour is applied to the unit along the lines of Carry Harvestable Resource Name Here. As far as I can tell, the behaviour only controls the Actor - Event which causes the worker to have the mineral or vespene canister attached to it.
What I want to achieve is when a unit takes fatal or non fatal damage, it drops the carried resources. I can do all of that fine through triggers (and possibly through the Data editor at a later date). But the problem I noticed was that by simply removing the Carry Harvestable behaviour from the unit - sure, the attached model disappears - but the specific unit cannot harvest anything since it is still somehow flagged as carrying resources. As in, the behaviour is gone, but the Return Cargo ability/button is still enabled, and an attempt to make the unit harvest resources results in it searching for the Resource Drop Off unit.
Anyone know how to fix this? :)
[sorry it's late, can't find it myself after looking for about an hour or two]
@Nardival: Go bump
You tried using a modify unit effect to reduce the number of resources on the unit?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg