Im gonna say this right away, i do not mean a already placed structure.
I have a custom probe that builds structures..
I had it build a Forge, and i want the Forge to start researching upgrades when its done.
( After 45 seconds the forge is done constructing )
I want to provide as much help as possible. So what i think is:
.Custom Probe Builds Structure
..5 seconds later a trigger tells the forge to research.
But i need to somehow make the trigger find it.. ( I used a point called "Forge". Thats where the Forge is constructed. )
This description is probably more confusing then what it is helpful, but here it goes:
You need a handle for the building, preferably as a unit. Then you could perhaps call some ability or behaviour for that unit.
To find a specific unit of type X at or near a point P you could use a unit group.
make a trigger/function
local variable: unit (unit, not unit type)
local variable: unitGroup (unit group)
action: setVariable(unitGroup) = unit group (unit type= the building you are looking for, region = circle with radious 1 from point P)
action: for each unit in unitGroup -> execute some ability or behaviour.
Im gonna say this right away, i do not mean a already placed structure.
I have a custom probe that builds structures.. I had it build a Forge, and i want the Forge to start researching upgrades when its done. ( After 45 seconds the forge is done constructing )
I want to provide as much help as possible. So what i think is:
.Custom Probe Builds Structure ..5 seconds later a trigger tells the forge to research.
But i need to somehow make the trigger find it.. ( I used a point called "Forge". Thats where the Forge is constructed. )
@PlayPrey: Go
This description is probably more confusing then what it is helpful, but here it goes:
You need a handle for the building, preferably as a unit. Then you could perhaps call some ability or behaviour for that unit. To find a specific unit of type X at or near a point P you could use a unit group.