Hi everybody, here is my problem. My scv is minning mineral and in the event (unit use ability), the mineral is called 'triggering ability target unit' (because my scv is doing the gather ability and the mineral is the target unit).
But my problem is: if I want to call this mineral in another trigger (after the mineral is mined), I can't use the 'triggering ability target unit'.I try searching another name for this unit, but I can't find anything to call it in action/condition...
I can use the 'unit attribute point change' event and I can get the type of the behavior (because the mineral gives a behavior to the worker), but I can't identify the caster...
It would be perfect if blizzard could make a 'caster unit' function , but it doesn't exist, so anybody got an idea to get a name to the mineral?
You want to call the mineral patch itself right? Seeing that workers have no collision size when the ability is used you could search for units within a certain range (say 1 block) which = mineral patch and that way you could get the unit.
What exactly are you trying to do by identifying the mineral field? You may be able to do what you want with a combination of triggers and data, but in order to help you I need more information. Posting the triggers you have now would help as well.
I try to do that, I add the action 'pick each unit in region (all unit around scv in radius 1) and do action' with the condition of a unit type, but it doesn't work...
So I took about an hour and half to put this part of my map on a sample, I hope it will help players to make harvester cargo unit (like command and conquer harvester). If it works, I will surely put a tutorial on this a day.
So here is my map.
To see my problems, follow this steps :
1: start game and mine with scv (wow it works)
2: after it drops off, gather like 2 or 3 minerals and click on 'return cargo even if not full' (it works too)
3: after it drops off again, gather 2-3 other mineral and click on this button again and just after that, try to gather again (it doesn't works because it already have a mineral in his hand)...
If I just can name the behavior's caster unit, it will be pretty easy to remove it and put it in the cargo, but as you see, I can't name it...
Hi everybody, here is my problem. My scv is minning mineral and in the event (unit use ability), the mineral is called 'triggering ability target unit' (because my scv is doing the gather ability and the mineral is the target unit).
But my problem is: if I want to call this mineral in another trigger (after the mineral is mined), I can't use the 'triggering ability target unit'.I try searching another name for this unit, but I can't find anything to call it in action/condition...
I can use the 'unit attribute point change' event and I can get the type of the behavior (because the mineral gives a behavior to the worker), but I can't identify the caster...
It would be perfect if blizzard could make a 'caster unit' function , but it doesn't exist, so anybody got an idea to get a name to the mineral?
Ugh wtf ... can you post the triggers.
You want to call the mineral patch itself right? Seeing that workers have no collision size when the ability is used you could search for units within a certain range (say 1 block) which = mineral patch and that way you could get the unit.
What exactly are you trying to do by identifying the mineral field? You may be able to do what you want with a combination of triggers and data, but in order to help you I need more information. Posting the triggers you have now would help as well.
@DogmaiSEA: Go
I try to do that, I add the action 'pick each unit in region (all unit around scv in radius 1) and do action' with the condition of a unit type, but it doesn't work...
So I took about an hour and half to put this part of my map on a sample, I hope it will help players to make harvester cargo unit (like command and conquer harvester). If it works, I will surely put a tutorial on this a day. So here is my map.
To see my problems, follow this steps :
1: start game and mine with scv (wow it works) 2: after it drops off, gather like 2 or 3 minerals and click on 'return cargo even if not full' (it works too) 3: after it drops off again, gather 2-3 other mineral and click on this button again and just after that, try to gather again (it doesn't works because it already have a mineral in his hand)...
If I just can name the behavior's caster unit, it will be pretty easy to remove it and put it in the cargo, but as you see, I can't name it...